🎨 Update Wish Log Error Handler

This commit is contained in:
洛水居室 2023-09-13 08:25:19 +08:00
parent 7580265bff
commit aef1cb4c02
No known key found for this signature in database
GPG Key ID: C9DE87DA724B88FC

View File

@ -360,6 +360,8 @@ class WishLogPlugin(Plugin.Conversation):
await png_data.reply_document(message, filename="抽卡记录.png")
else:
await png_data.reply_photo(message)
except PlayerNotFoundError:
await message.reply_text("该用户暂未绑定账号")
except GachaLogNotFound:
logger.info("未找到用户 %s[%s] 的抽卡记录", user.full_name, user.id)
buttons = [