From c46f16131bccaca8e4430c3ab555ccb7dd5804b0 Mon Sep 17 00:00:00 2001 From: Fluffy-Bean Date: Sat, 25 Mar 2023 13:05:16 +0000 Subject: [PATCH] Woops, maybe it was broken afterall --- gallery/__init__.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/gallery/__init__.py b/gallery/__init__.py index 8657f37..1db7d79 100644 --- a/gallery/__init__.py +++ b/gallery/__init__.py @@ -66,7 +66,13 @@ def create_app(test_config=None): assets.register('js_all', js_scripts) # Error handlers - @app.errorhandler(Exception) + @app.errorhandler(400) + @app.errorhandler(401) + @app.errorhandler(403) + @app.errorhandler(404) + @app.errorhandler(405) + @app.errorhandler(418) + @app.errorhandler(500) def error_page(err): error = err.code msg = err.description