mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-10-01 01:26:03 -04:00
Fix deleting chat logs (#4914)
This commit is contained in:
parent
f51156705d
commit
5754f0c357
@ -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…
Reference in New Issue
Block a user