From 0ab46384acb730e371fce99f48c91f7c8f37d721 Mon Sep 17 00:00:00 2001 From: Kyomotoi 0w0 Date: Mon, 25 Oct 2021 13:31:08 +0800 Subject: =?UTF-8?q?=F0=9F=90=9B=E2=9C=A8=20=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ATRI/plugins/essential.py | 1 + 1 file changed, 1 insertion(+) (limited to 'ATRI/plugins/essential.py') diff --git a/ATRI/plugins/essential.py b/ATRI/plugins/essential.py index 4cc0ac2..09107d5 100644 --- a/ATRI/plugins/essential.py +++ b/ATRI/plugins/essential.py @@ -310,5 +310,6 @@ async def _recall_private_event(bot: Bot, event: FriendRecallNoticeEvent): async def _clear_cache(): try: shutil.rmtree(TEMP_PATH) + os.makedirs(TEMP_PATH, exist_ok=True) except Exception: log.warning("清除缓存失败,请手动清除:data/temp") -- cgit v1.2.3