From 0ef7bbaf689cc78999331438469a1af4f98af02a Mon Sep 17 00:00:00 2001 From: LittleBell Date: Wed, 24 May 2023 20:02:16 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix=20bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit KeyError: 'Icon' --- LittlePaimon/utils/alias.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LittlePaimon/utils/alias.py b/LittlePaimon/utils/alias.py index 356d5dd..8c693d2 100644 --- a/LittlePaimon/utils/alias.py +++ b/LittlePaimon/utils/alias.py @@ -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