diff --git a/user.py b/user.py index 6406be4..3a78cdf 100644 --- a/user.py +++ b/user.py @@ -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)