mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-11-22 08:07:56 +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}')
|
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…
Reference in New Issue
Block a user