diff --git a/utils/patch/genshin.py b/utils/patch/genshin.py index 9e6c9ab..9e3ac1e 100644 --- a/utils/patch/genshin.py +++ b/utils/patch/genshin.py @@ -224,10 +224,10 @@ class DailyRewardClient: headers["x-rpc-validate"] = validate headers["x-rpc-seccode"] = f"{validate}|jordan" - kwargs.pop("challenge", None) - kwargs.pop("validate", None) - else: raise TypeError(f"{self.region!r} is not a valid region.") + kwargs.pop("challenge", None) + kwargs.pop("validate", None) + return await self.request(url, method=method, params=params, headers=headers, **kwargs)