Fix file delete (bad merge)

This commit is contained in:
allegroai 2021-05-03 18:14:30 +03:00
parent 8c18660a82
commit cc83aadae6

View File

@ -65,7 +65,7 @@ def delete(path):
fspath(path)
)
)
if not path.exists() or path.is_file():
if not path.exists() or not path.is_file():
abort(Response(f"File {str(path)} not found", 404))
path.unlink()