Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
d9970ef9
Unverified
Commit
d9970ef9
authored
7 years ago
by
Matt Drayer
Committed by
GitHub
7 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #16563 from edx/mattdrayer/ENT-686-4
Revise SuccessFactors OData exception logging
parents
4d0ce28f
8ee03662
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
common/djangoapps/third_party_auth/saml.py
+8
-2
8 additions, 2 deletions
common/djangoapps/third_party_auth/saml.py
with
8 additions
and
2 deletions
common/djangoapps/third_party_auth/saml.py
+
8
−
2
View file @
d9970ef9
...
...
@@ -247,8 +247,14 @@ class SapSuccessFactorsIdentityProvider(EdXSAMLIdentityProvider):
return
missing
def
log_bizx_api_exception
(
self
,
transaction_data
,
err
):
sys_msg
=
err
.
response
.
json
()
if
err
.
response
else
'
Not available
'
headers
=
err
.
response
.
headers
if
err
.
response
else
'
Not available
'
try
:
sys_msg
=
err
.
response
.
content
except
AttributeError
:
sys_msg
=
'
Not available
'
try
:
headers
=
err
.
response
.
headers
except
AttributeError
:
headers
=
'
Not available
'
token_data
=
transaction_data
.
get
(
'
token_data
'
)
token_data
=
token_data
if
token_data
else
'
Not available
'
log_msg_template
=
(
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment