mirror of
https://github.com/PaiGramTeam/MibooGram.git
synced 2024-11-16 04:45:27 +00:00
🎨 Handling Genshin Exception Return Code -120
This commit is contained in:
parent
974157d35c
commit
33b5f3b3bd
@ -153,5 +153,10 @@ class Ledger(Plugin, BasePlugin):
|
||||
self._add_delete_message_job(context, reply_message.chat_id, reply_message.message_id, 30)
|
||||
self._add_delete_message_job(context, message.chat_id, message.message_id, 30)
|
||||
return
|
||||
except GenshinException as exc:
|
||||
if exc.retcode == -120:
|
||||
await message.reply_text("当前角色冒险等阶不足,暂时无法获取信息")
|
||||
return
|
||||
raise exc
|
||||
await message.reply_chat_action(ChatAction.UPLOAD_PHOTO)
|
||||
await render_result.reply_photo(message, filename=f"{client.uid}.png", allow_sending_without_reply=True)
|
||||
|
Loading…
Reference in New Issue
Block a user