mirror of
https://github.com/PaiGramTeam/PaiGram.git
synced 2024-11-29 11:03:16 +00:00
🐛 Fix the issue of still getting incorrect cookies when account_id is None
This commit is contained in:
parent
3dbb0e74a0
commit
c07e9cf097
@ -265,6 +265,8 @@ class GenshinHelper(Plugin):
|
|||||||
raise PlayerNotFoundError(user_id)
|
raise PlayerNotFoundError(user_id)
|
||||||
cookies = None
|
cookies = None
|
||||||
if need_cookie:
|
if need_cookie:
|
||||||
|
if player.account_id is None:
|
||||||
|
raise CookiesNotFoundError(user_id)
|
||||||
cookie_model = await self.cookies_service.get(player.user_id, player.account_id, player.region)
|
cookie_model = await self.cookies_service.get(player.user_id, player.account_id, player.region)
|
||||||
if cookie_model is None:
|
if cookie_model is None:
|
||||||
raise CookiesNotFoundError(user_id)
|
raise CookiesNotFoundError(user_id)
|
||||||
|
Loading…
Reference in New Issue
Block a user