mirror of
https://github.com/PaiGramTeam/EnkaNetwork.py.git
synced 2024-11-16 03:45:28 +00:00
Fix key error "showNameCardIdList"
This commit is contained in:
parent
5fed277f21
commit
028fc1eab6
@ -119,4 +119,4 @@ class PlayerInfo(BaseModel):
|
||||
super().__init__(**data)
|
||||
|
||||
__pydantic_self__.namecard = Namecard(id=data["nameCardId"])
|
||||
__pydantic_self__.namecards = [Namecard(id=namecard) for namecard in data["showNameCardIdList"]]
|
||||
__pydantic_self__.namecards = [Namecard(id=namecard) for namecard in (data["showNameCardIdList"] if "showNameCardIdList" in data else [])]
|
Loading…
Reference in New Issue
Block a user