Use getter to get value
This commit is contained in:
parent
3291f7809b
commit
617f46835e
1 changed files with 2 additions and 2 deletions
|
@ -235,7 +235,8 @@ 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
|
||||||
try:
|
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
|
# False positive: pylint: disable=no-member
|
||||||
kratos_id = consent_request.subject
|
kratos_id = consent_request.subject
|
||||||
except Exception as error:
|
except Exception as error:
|
||||||
|
@ -243,7 +244,6 @@ def consent():
|
||||||
current_app.logger.error(f"Error: {error}")
|
current_app.logger.error(f"Error: {error}")
|
||||||
current_app.logger.error(f"Client: {consent_request.client}")
|
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.subject}")
|
||||||
current_app.logger.error(f"Subject: {consent_request.client.client_id}")
|
|
||||||
abort(501, description="Internal error occured")
|
abort(501, description="Internal error occured")
|
||||||
|
|
||||||
# Get the related user object
|
# Get the related user object
|
||||||
|
|
Loading…
Reference in a new issue