Added test error page

This commit is contained in:
Dominik V. Salonen 2015-12-24 13:50:44 +01:00
parent a5df899979
commit a6c35978fb
1 changed files with 2 additions and 0 deletions

2
run.py
View File

@ -91,6 +91,8 @@ def upload_file():
return redirect(url_for('get_file', filename=filename), code=302) return redirect(url_for('get_file', filename=filename), code=302)
except Exception: except Exception:
return json.dumps(data) return json.dumps(data)
else:
return render_template('error.html')
# Return Web UI if we have a GET request # Return Web UI if we have a GET request
elif request.method == 'GET': elif request.method == 'GET':