Skip to content
This repository has been archived by the owner on Mar 11, 2024. It is now read-only.

Commit

Permalink
Merge pull request #7 from niizam/patch-1
Browse files Browse the repository at this point in the history
Fix TypeError when GetGachaSubIdFP returns None
  • Loading branch information
O-Isaac authored Feb 6, 2023
2 parents 32f2a47 + ead3a87 commit 1eec9d8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions user.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,10 +196,14 @@ def drawFP(self):

if main.fate_region == "NA":
gachaSubId = GetGachaSubIdFP("NA")
if gachaSubId is None:
gachaSubId = "0" # or any other default value as a string
self.builder_.AddParameter('gachaSubId', gachaSubId)
main.logger.info(f"Friend Point Gacha Sub Id " + gachaSubId)
else:
gachaSubId = GetGachaSubIdFP("JP")
if gachaSubId is None:
gachaSubId = "0" # or any other default value as a string
self.builder_.AddParameter('gachaSubId', gachaSubId)
main.logger.info(f"Friend Point Gacha Sub Id " + gachaSubId)

Expand Down

0 comments on commit 1eec9d8

Please sign in to comment.