diff --git a/apps/riic_report_analysis.py b/apps/riic_report_analysis.py index 917bff4..a9ffcf0 100644 --- a/apps/riic_report_analysis.py +++ b/apps/riic_report_analysis.py @@ -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))