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
862e1a37
Commit
862e1a37
authored
4 years ago
by
stvn
Browse files
Options
Downloads
Plain Diff
Merge PR #24577 fix/error/zendesk-proxy
* Commits: Handle zendesk_proxy AttributeError
parents
de8ef23d
ef2ab1f2
No related branches found
Branches containing commit
Tags
release-2021-07-12-15.26
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
openedx/core/djangoapps/zendesk_proxy/v1/views.py
+3
-0
3 additions, 0 deletions
openedx/core/djangoapps/zendesk_proxy/v1/views.py
with
3 additions
and
0 deletions
openedx/core/djangoapps/zendesk_proxy/v1/views.py
+
3
−
0
View file @
862e1a37
...
...
@@ -64,6 +64,9 @@ class ZendeskPassthroughView(APIView):
custom_fields
=
request
.
data
[
'
custom_fields
'
],
tags
=
request
.
data
[
'
tags
'
]
)
except
AttributeError
as
attribute
:
logger
.
error
(
'
Zendesk Proxy Bad Request AttributeError: %s
'
,
attribute
)
return
Response
(
status
=
status
.
HTTP_400_BAD_REQUEST
)
except
KeyError
as
key
:
logger
.
error
(
'
Zendesk Proxy Bad Request KeyError: %s
'
,
key
)
return
Response
(
status
=
status
.
HTTP_400_BAD_REQUEST
)
...
...
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