mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-11-21 23:57:58 +01: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