mirror of
https://github.com/PaiGramTeam/PaiGram.git
synced 2024-11-16 12:51:35 +00:00
🐛 Fix the exception not being thrown for all exceptions except "Too Many Requests"
This commit is contained in:
parent
33be295ac8
commit
503bd0b498
@ -197,6 +197,7 @@ class CharacterDetails(Plugin):
|
|||||||
except GenshinException as exc:
|
except GenshinException as exc:
|
||||||
if "Too Many Requests" in exc.msg:
|
if "Too Many Requests" in exc.msg:
|
||||||
return await self.get_character_details_for_mysql(uid, character_id)
|
return await self.get_character_details_for_mysql(uid, character_id)
|
||||||
|
raise exc
|
||||||
await self.set_character_details_for_redis(uid, character_id, detail)
|
await self.set_character_details_for_redis(uid, character_id, detail)
|
||||||
return detail
|
return detail
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user