Update DashboardOIDC.py
parent
68abc7ec1b
commit
651784b1d1
|
|
@ -98,7 +98,8 @@ class DashboardOIDC:
|
|||
|
||||
return True, payload
|
||||
except Exception as e:
|
||||
current_app.logger.error('Read OIDC file failed. Reason: ' + str(e), provider, code, redirect_uri)
|
||||
with current_app.app_context():
|
||||
current_app.logger.error('Read OIDC file failed. Reason: ' + str(e), provider, code, redirect_uri)
|
||||
return False, str(e)
|
||||
|
||||
|
||||
|
|
@ -109,5 +110,6 @@ class DashboardOIDC:
|
|||
open(DashboardOIDC.ConfigurationFilePath, 'r').read()
|
||||
)
|
||||
except Exception as e:
|
||||
current_app.logger.error('Read OIDC file failed. Reason: ' + str(e))
|
||||
with current_app.app_context():
|
||||
current_app.logger.error('Read OIDC file failed. Reason: ' + str(e))
|
||||
return False
|
||||
Loading…
Reference in New Issue