Skip to content
Snippets Groups Projects
Commit 8d3c7b92 authored by Mart van Santen's avatar Mart van Santen
Browse files

Better exception handling

parent c3a9a153
No related branches found
No related tags found
No related merge requests found
......@@ -170,8 +170,13 @@ def login():
messages.append(message)
except ory_kratos_client.exceptions.ApiAttributeError as ex:
# This exception is expected when there are no messages
pass
except Exception as ex:
current_app.logger.info("No messages in kratos flow to push to UI")
# An unkown exception happens, we log the error but continue as it
# only affects the messages part
current_app.logger.error("Unknown exception: " + str(ex))
if identity and not refresh:
# We are already logged in, and don't need to refresh.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment