diff --git a/run.py b/run.py index 268cad5..8d5549d 100755 --- a/run.py +++ b/run.py @@ -91,6 +91,8 @@ def upload_file(): return redirect(url_for('get_file', filename=filename), code=302) except Exception: return json.dumps(data) + else: + return render_template('error.html') # Return Web UI if we have a GET request elif request.method == 'GET':