From 9f4c3882f38c65b17a5a7212cda2ea5cf189971b Mon Sep 17 00:00:00 2001 From: CMHopeSunshine <277073121@qq.com> Date: Fri, 26 Aug 2022 13:37:13 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20=E4=BF=AE=E5=A4=8D`=E9=A1=BB=E5=BC=A5`?= =?UTF-8?q?=E4=B8=BANone=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- LittlePaimon/plugins/Paimon_Info/draw_player_card.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/LittlePaimon/plugins/Paimon_Info/draw_player_card.py b/LittlePaimon/plugins/Paimon_Info/draw_player_card.py index 30a96c0..3892f3e 100644 --- a/LittlePaimon/plugins/Paimon_Info/draw_player_card.py +++ b/LittlePaimon/plugins/Paimon_Info/draw_player_card.py @@ -69,7 +69,9 @@ async def draw_character_card(info: Character) -> Optional[PMImage]: async def draw_world_card(img: PMImage, info: PlayerWorldInfo): - if info.name == '蒙德': + if info is None: + pass + elif info.name == '蒙德': if info.unlock: await img.text(get_percent_text(info.percent), (110, 301), 1387, fm.get('hywh', 24), 'white', 'center') await img.text(str(info.level) if info.level != 8 else 'Max', 150, 1447, fm.get('hywh', 24), 'white')