Fix deleting chat logs (#4914)
This commit is contained in:
parent
f51156705d
commit
5754f0c357
1 changed files with 2 additions and 2 deletions
|
@ -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}.')
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue