解决内存泄露问题

This commit is contained in:
qingxu fu
2023-11-30 22:19:05 +08:00
parent 8c840f3d4c
commit 55d807c116
3 changed files with 34 additions and 3 deletions

View File

@@ -561,7 +561,8 @@ def promote_file_to_downloadzone(file, rename_file=None, chatbot=None):
user_name = get_user(chatbot)
else:
user_name = default_user_name
if not os.path.exists(file):
raise FileNotFoundError(f'文件{file}不存在')
user_path = get_log_folder(user_name, plugin_name=None)
if file_already_in_downloadzone(file, user_path):
new_path = file