From 503bd0b498535dcde3190367860d6f528fdea2a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B4=9B=E6=B0=B4=E5=B1=85=E5=AE=A4?= Date: Tue, 14 Mar 2023 10:14:46 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20the=20exception=20not=20be?= =?UTF-8?q?ing=20thrown=20for=20all=20exceptions=20except=20"Too=20Many=20?= =?UTF-8?q?Requests"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/tools/genshin.py | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/tools/genshin.py b/plugins/tools/genshin.py index a453ab9d..3884bda0 100644 --- a/plugins/tools/genshin.py +++ b/plugins/tools/genshin.py @@ -197,6 +197,7 @@ class CharacterDetails(Plugin): except GenshinException as exc: if "Too Many Requests" in exc.msg: return await self.get_character_details_for_mysql(uid, character_id) + raise exc await self.set_character_details_for_redis(uid, character_id, detail) return detail try: