mirror of
https://github.com/PaiGramTeam/MibooGram.git
synced 2024-11-16 04:45:27 +00:00
🐛 修复角色卡片获取信息为空导致的报错
This commit is contained in:
parent
a046b22f3a
commit
321e4e7aac
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user