mirror of
https://github.com/PaiGramTeam/PamGram.git
synced 2024-11-21 21:58:04 +00:00
🐛 Fix TypeError
exception in DailyRewardClient
This commit is contained in:
parent
762c9bc907
commit
b323dc0e64
@ -224,10 +224,10 @@ class DailyRewardClient:
|
|||||||
headers["x-rpc-validate"] = validate
|
headers["x-rpc-validate"] = validate
|
||||||
headers["x-rpc-seccode"] = f"{validate}|jordan"
|
headers["x-rpc-seccode"] = f"{validate}|jordan"
|
||||||
|
|
||||||
kwargs.pop("challenge", None)
|
|
||||||
kwargs.pop("validate", None)
|
|
||||||
|
|
||||||
else:
|
else:
|
||||||
raise TypeError(f"{self.region!r} is not a valid region.")
|
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)
|
return await self.request(url, method=method, params=params, headers=headers, **kwargs)
|
||||||
|
Loading…
Reference in New Issue
Block a user