mirror of
https://github.com/PaiGramTeam/PaiGram.git
synced 2024-11-22 15:36:44 +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))
|
await message.reply_text("未查询到您所绑定的账号信息,请先绑定账号", reply_markup=InlineKeyboardMarkup(buttons))
|
||||||
return
|
return
|
||||||
original_data = await self._load_history(uid)
|
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):
|
if isinstance(self.kitsune, str):
|
||||||
photo = self.kitsune
|
photo = self.kitsune
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user