aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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