Skip to content
Snippets Groups Projects
Commit 862e1a37 authored by stvn's avatar stvn
Browse files

Merge PR #24577 fix/error/zendesk-proxy

* Commits:
  Handle zendesk_proxy AttributeError
parents de8ef23d ef2ab1f2
No related branches found
Tags release-2021-07-12-15.26
No related merge requests found
......@@ -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)
......
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