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}')
|
logger.error(f'Invalid file path: {fname}')
|
||||||
return
|
return
|
||||||
|
|
||||||
if abs_path.exists():
|
if rel_path.exists():
|
||||||
abs_path.unlink()
|
rel_path.unlink()
|
||||||
logger.info(f'Deleted {fname}.')
|
logger.info(f'Deleted {fname}.')
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue