From 2cdb907d49ce3d5a082dc3e0879f3c836422cff9 Mon Sep 17 00:00:00 2001 From: student_2333 Date: Tue, 5 Sep 2023 14:42:46 +0800 Subject: [PATCH] fix --- nonebot_plugin_pjsk/resource.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nonebot_plugin_pjsk/resource.py b/nonebot_plugin_pjsk/resource.py index d79fa9d..f136837 100644 --- a/nonebot_plugin_pjsk/resource.py +++ b/nonebot_plugin_pjsk/resource.py @@ -86,7 +86,8 @@ async def download(font_name: str): # download(path.name) for path in FONT_PATHS if not path.exists() # ] # await asyncio.gather(*tasks) - await download(FONT_PATH.name) + if not FONT_PATH.exists(): + await download(FONT_PATH.name) async def load_sticker_info():