aboutsummaryrefslogtreecommitdiff
path: root/gn3/errors.py
diff options
context:
space:
mode:
Diffstat (limited to 'gn3/errors.py')
-rw-r--r--gn3/errors.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/gn3/errors.py b/gn3/errors.py
index 7ae07f4..606b3d3 100644
--- a/gn3/errors.py
+++ b/gn3/errors.py
@@ -13,6 +13,7 @@ def handle_authorisation_error(exc: AuthorisationError):
}), exc.error_code
def handle_oauth2_errors(exc: OAuth2Error):
+ """Handle OAuth2Error if not handled anywhere else."""
current_app.logger.error(exc)
return jsonify({
"error": exc.error,