From 5754f0c3573b2c310eadb8b26d365d7ceeaadbe1 Mon Sep 17 00:00:00 2001 From: Lounger <4087076+TheLounger@users.noreply.github.com> Date: Thu, 14 Dec 2023 01:54:43 +0100 Subject: [PATCH] Fix deleting chat logs (#4914) --- modules/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/utils.py b/modules/utils.py index 9f9ba0b7..39d4fb8f 100644 --- a/modules/utils.py +++ b/modules/utils.py @@ -47,8 +47,8 @@ def delete_file(fname): logger.error(f'Invalid file path: {fname}') return - if abs_path.exists(): - abs_path.unlink() + if rel_path.exists(): + rel_path.unlink() logger.info(f'Deleted {fname}.')