From 7ba978eafee13b6708210d2e2fecd0a4cc70eab3 Mon Sep 17 00:00:00 2001 From: Ayush Saini <36878972+imayushsaini@users.noreply.github.com> Date: Sun, 2 Jul 2023 23:06:33 +0530 Subject: [PATCH] fixed logs backup --- dist/ba_root/mods/tools/logger.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist/ba_root/mods/tools/logger.py b/dist/ba_root/mods/tools/logger.py index 9f65af1..110fbf2 100644 --- a/dist/ba_root/mods/tools/logger.py +++ b/dist/ba_root/mods/tools/logger.py @@ -133,7 +133,7 @@ class dumplogs(threading.Thread): finally: fcntl.flock(lock_file.fileno(), fcntl.LOCK_UN) lock_file.close() - os.remove(lock_file) + os.remove(file_path) def send_webhook_message():