Skip to content

Commit

Permalink
Update zendesk.py
Browse files Browse the repository at this point in the history
Throw a ZendeskError when the request fails
  • Loading branch information
KFoxder authored Oct 4, 2016
1 parent 5074176 commit b69cde9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zendesk/zendesk.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ def _response_handler(response, content):
the body of 'content' has our response.
"""
if response.status >= 400:
return responses[response.status]
raise ZendeskError(content, response.status)

# Deserialize json content if content exist. In some cases Zendesk
# returns ' ' strings. Also return false non strings (0, [], (), {})
Expand Down

0 comments on commit b69cde9

Please sign in to comment.