From 43d60778159894457b414fe891d13e985ccb4c2d Mon Sep 17 00:00:00 2001 From: Pavel Yakunin Date: Sun, 5 Jun 2016 22:32:26 +0300 Subject: [PATCH] cleanup --- cps/web.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cps/web.py b/cps/web.py index e158b9ea..bc496b95 100755 --- a/cps/web.py +++ b/cps/web.py @@ -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'))