Added test error page
This commit is contained in:
parent
a5df899979
commit
a6c35978fb
2
run.py
2
run.py
|
@ -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':
|
||||||
|
|
Loading…
Reference in New Issue