🐛 修复角色卡片获取信息为空导致的报错

This commit is contained in:
洛水居室 2022-09-09 23:06:31 +08:00
parent a046b22f3a
commit 321e4e7aac
No known key found for this signature in database
GPG Key ID: C9DE87DA724B88FC

View File

@ -87,7 +87,7 @@ class PlayerCards(Plugin, BasePlugin):
except VaildateUIDError:
await message.reply_text("UID 错误或者非法")
return
if len(data.characters) == 0:
if data.characters is None:
await message.reply_text("请先将角色加入到角色展柜并允许查看角色详情")
return
for characters in data.characters: