09-02 09:15:13 [INFO] gsuidcore.handler | [Command] command=原神公告, text=
Task exception was never retrieved
future: <Task finished name='Task-1813' coro=<ann() done, defined at D:\NoneBot\gsuid_core\gsuid_core\plugins\GenshinUID\GenshinUID\genshinuid_ann__init__.py:24> exception=AttributeError("'FreeTypeFont' object has no attribute 'getsize'")>
Traceback (most recent call last):
File "D:\NoneBot\gsuid_core\gsuid_core\plugins\GenshinUID\GenshinUID\genshinuidann__init__.py", line 28, in ann
img = await ann_list_card()
File "D:\NoneBot\gsuid_core\gsuid_core\plugins\GenshinUID\GenshinUID\genshinuid_ann\ann_card.py", line 52, in ann_list_card
draw_text_by_line(
File "D:\NoneBot\gsuid_core\gsuid_core\plugins\GenshinUID\GenshinUID\utils\image\image_tools.py", line 67, in draw_text_byline
, h = font.getsize('X')
AttributeError: 'FreeTypeFont' object has no attribute 'getsize'
09-02 09:15:13 [INFO] gsuidcore.handler | [Command] command=原神公告, text= Task exception was never retrieved future: <Task finished name='Task-1813' coro=<ann() done, defined at D:\NoneBot\gsuid_core\gsuid_core\plugins\GenshinUID\GenshinUID\genshinuid_ann__init__.py:24> exception=AttributeError("'FreeTypeFont' object has no attribute 'getsize'")> Traceback (most recent call last): File "D:\NoneBot\gsuid_core\gsuid_core\plugins\GenshinUID\GenshinUID\genshinuidann__init__.py", line 28, in ann img = await ann_list_card() File "D:\NoneBot\gsuid_core\gsuid_core\plugins\GenshinUID\GenshinUID\genshinuid_ann\ann_card.py", line 52, in ann_list_card draw_text_by_line( File "D:\NoneBot\gsuid_core\gsuid_core\plugins\GenshinUID\GenshinUID\utils\image\image_tools.py", line 67, in draw_text_byline , h = font.getsize('X') AttributeError: 'FreeTypeFont' object has no attribute 'getsize'