summaryrefslogtreecommitdiff
path: root/ATRI/plugins/essential.py
diff options
context:
space:
mode:
authorKyomotoi 0w0 <[email protected]>2021-10-25 13:31:08 +0800
committerKyomotoi 0w0 <[email protected]>2021-10-25 13:31:08 +0800
commit0ab46384acb730e371fce99f48c91f7c8f37d721 (patch)
tree35cc9de231da98b73556f6c9b5298ffcff323cc1 /ATRI/plugins/essential.py
parent04ca019a3395e3bf3bf33d22ce4d6abb5682ffde (diff)
downloadATRI-0ab46384acb730e371fce99f48c91f7c8f37d721.tar.gz
ATRI-0ab46384acb730e371fce99f48c91f7c8f37d721.tar.bz2
ATRI-0ab46384acb730e371fce99f48c91f7c8f37d721.zip
🐛✨ 更新
Diffstat (limited to 'ATRI/plugins/essential.py')
-rw-r--r--ATRI/plugins/essential.py1
1 files changed, 1 insertions, 0 deletions
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")