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

Add debugging

parent a4981c8c
No related branches found
No related tags found
No related merge requests found
...@@ -234,9 +234,16 @@ def consent(): ...@@ -234,9 +234,16 @@ def consent():
# Get information about this consent request: # Get information about this consent request:
# False positive: pylint: disable=no-member # False positive: pylint: disable=no-member
app_id = consent_request.client.client_id try:
# False positive: pylint: disable=no-member app_id = consent_request.client.client_id
kratos_id = consent_request.subject # False positive: pylint: disable=no-member
kratos_id = consent_request.subject
except Exception as e:
current_app.logger.error(f"Error: Unable to extract information from consent request")
current_app.logger.error(f"Error: {error}")
current_app.logger.error(f"Client: {consent_request.client}")
current_app.logger.error(f"Subject: {consent_request.subject}")
abort(501, description="Internal error occured"
# Get the related user object # Get the related user object
user = KratosUser(KRATOS_ADMIN, kratos_id) user = KratosUser(KRATOS_ADMIN, kratos_id)
......
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