🐛 Fix TypeError exception in DailyRewardClient

This commit is contained in:
洛水居室 2022-11-17 19:13:12 +08:00
parent 762c9bc907
commit b323dc0e64
No known key found for this signature in database
GPG Key ID: C9DE87DA724B88FC

View File

@ -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)