mirror of
https://github.com/janeczku/calibre-web
synced 2024-11-24 02:27:22 +00:00
cleanup
This commit is contained in:
parent
18e341d650
commit
43d6077815
@ -1105,7 +1105,7 @@ def upload():
|
||||
flash("Failed to create path %s (Permission denied)." % filepath, category="error")
|
||||
return redirect(url_for('index'))
|
||||
try:
|
||||
move(meta.file_path, saved_filename) #remove as well
|
||||
move(meta.file_path, saved_filename)
|
||||
except OSError:
|
||||
flash("Failed to store file %s (Permission denied)." % saved_filename, category="error")
|
||||
return redirect(url_for('index'))
|
||||
|
Loading…
Reference in New Issue
Block a user