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

Use getter to get value

parent 3291f780
No related branches found
No related tags found
1 merge request!55Resolve "Merge dashboard and dashboard-backend repos"
......@@ -235,7 +235,8 @@ def consent():
# Get information about this consent request:
# False positive: pylint: disable=no-member
try:
app_id = consent_request.client.client_id
consent_client = consent_request.client.get('client_id')
app_id = consent_client.get('client_id')
# False positive: pylint: disable=no-member
kratos_id = consent_request.subject
except Exception as error:
......@@ -243,7 +244,6 @@ def consent():
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}")
current_app.logger.error(f"Subject: {consent_request.client.client_id}")
abort(501, description="Internal error occured")
# Get the related user object
......
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