异步地删除文件

This commit is contained in:
zhbaor 2023-08-14 09:43:13 +08:00
parent 7643cf2dae
commit 161a689fb4

View file

@ -63,4 +63,4 @@ class RIICReportAnalysis:
await chain.onebot_reply(Text(output.strip()))
os.remove(img_path)
await loop.run_in_executor(None, functools.partial(os.remove, img_path))