Fix deleting chat logs (#4914)

This commit is contained in:
Lounger 2023-12-14 01:54:43 +01:00 committed by GitHub
parent f51156705d
commit 5754f0c357
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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}.')