aboutsummaryrefslogtreecommitdiff
path: root/qc_app
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-06-27 16:36:44 -0500
committerFrederick Muriuki Muriithi2024-06-27 16:36:44 -0500
commit0aa7d9890b07256c9f3672cc960a111ee5a3394e (patch)
treeb74bf5fae4ae15c6a06e95bea66e41d956fe6b38 /qc_app
parentdf9da3d5b5e4382976ede1b54eb1aeb04c4c45e5 (diff)
downloadgn-uploader-0aa7d9890b07256c9f3672cc960a111ee5a3394e.tar.gz
Fix bugs in error-reporting.
Diffstat (limited to 'qc_app')
-rw-r--r--qc_app/errors.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/qc_app/errors.py b/qc_app/errors.py
index bcd3543..3e7c893 100644
--- a/qc_app/errors.py
+++ b/qc_app/errors.py
@@ -11,13 +11,13 @@ def handle_general_exception(exc: Exception):
app.logger.error(
"Error (%s.%s): Generic unhandled exception!! (URI: %s)\n%s",
exc.__class__.__module__, exc.__class__.__name__, request.url, trace)
- return render_template("unhandled_exception.html", trace=trace)
+ return render_template("unhandled_exception.html", trace=trace), 500
def handle_http_exception(exc: HTTPException):
"""Handle HTTP exceptions."""
app.logger.error(
"HTTP Error %s: %s", exc.code, exc.description, exc_info=True)
- return render_template(f"http-error.html",
+ return render_template("http-error.html",
request_url=request.url,
exc=exc,
trace=traceback.format_exception(exc)), exc.code