mirror of
https://github.com/xuthus83/LittlePaimon.git
synced 2024-10-21 16:27:15 +08:00
🐛 fix bug
KeyError: 'Icon'
This commit is contained in:
parent
41b3cc63ff
commit
0ef7bbaf68
@ -154,7 +154,7 @@ def get_weapon_icon(name: str) -> Optional[str]:
|
||||
|
||||
|
||||
def get_artifact_icon(name: str) -> Optional[str]:
|
||||
icon_list = load_json(JSON_DATA / 'artifact.json')['Icon']
|
||||
icon_list = load_json(JSON_DATA / 'artifact.json')
|
||||
for k, v in icon_list['Name'].items():
|
||||
if name == v:
|
||||
return k
|
||||
|
Loading…
Reference in New Issue
Block a user