🐛 Fix the exception not being thrown for all exceptions except "Too Many Requests"

This commit is contained in:
洛水居室 2023-03-14 10:14:46 +08:00
parent 33be295ac8
commit 503bd0b498
No known key found for this signature in database
GPG Key ID: C9DE87DA724B88FC

View File

@ -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: