diff --git a/onlylegs/app.py b/onlylegs/app.py index 5e1e632..51bf25d 100644 --- a/onlylegs/app.py +++ b/onlylegs/app.py @@ -138,8 +138,7 @@ def handle_errors(): render_template("error.html", error=err.code, msg=err.description), err.code, ) - else: - return str(err.code) + ": " + err.description, err.code + return str(err.code) + ": " + err.description, err.code def register_blueprints():