From c07e9cf097aa0cd07847ef299f0d515d444551dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B4=9B=E6=B0=B4=E5=B1=85=E5=AE=A4?= Date: Wed, 15 Mar 2023 21:35:46 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20the=20issue=20of=20still?= =?UTF-8?q?=20getting=20incorrect=20cookies=20when=20account=5Fid=20is=20N?= =?UTF-8?q?one?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/tools/genshin.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/tools/genshin.py b/plugins/tools/genshin.py index 74ad428..5e855c8 100644 --- a/plugins/tools/genshin.py +++ b/plugins/tools/genshin.py @@ -265,6 +265,8 @@ class GenshinHelper(Plugin): raise PlayerNotFoundError(user_id) cookies = None 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) if cookie_model is None: raise CookiesNotFoundError(user_id)