mirror of
https://github.com/PaiGramTeam/MibooGram.git
synced 2024-11-16 04:45:27 +00:00
🐛 Fix load old player card info TypeError
This commit is contained in:
parent
061e2a28e6
commit
8b8057769a
@ -186,7 +186,9 @@ class PlayerCards(Plugin):
|
||||
await message.reply_text("未查询到您所绑定的账号信息,请先绑定账号", reply_markup=InlineKeyboardMarkup(buttons))
|
||||
return
|
||||
original_data = await self._load_history(uid)
|
||||
if original_data is None or len(original_data.get("avatarInfoList", [])) == 0:
|
||||
if original_data and not original_data.get("avatarInfoList"):
|
||||
original_data["avatarInfoList"] = []
|
||||
if original_data is None or len(original_data["avatarInfoList"]) == 0:
|
||||
if isinstance(self.kitsune, str):
|
||||
photo = self.kitsune
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user