aboutsummaryrefslogtreecommitdiff
path: root/gn_auth/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'gn_auth/__init__.py')
-rw-r--r--gn_auth/__init__.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/gn_auth/__init__.py b/gn_auth/__init__.py
index 446ba19..6df1bc7 100644
--- a/gn_auth/__init__.py
+++ b/gn_auth/__init__.py
@@ -12,6 +12,7 @@ from gn_auth.auth.views import oauth2
from gn_auth.auth.authentication.oauth2.server import setup_oauth2_server
from . import settings
+from .errors import register_error_handlers
class ConfigurationError(Exception):
"""Raised in case of a configuration error."""
@@ -74,4 +75,6 @@ def create_app(config: Optional[dict] = None) -> Flask:
app.register_blueprint(misc, url_prefix="/")
app.register_blueprint(oauth2, url_prefix="/auth")
+ register_error_handlers(app)
+
return app