Skip to content

Commit

Permalink
Add details as parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
glensc committed Jan 15, 2022
1 parent 6de70a5 commit a4106cd
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions trakt/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -534,10 +534,7 @@ def _handle_request(self, method, url, data=None):
try:
json_data = json.loads(response.content.decode('UTF-8', 'ignore'))
except JSONDecodeError as e:
ex = errors.BadResponseException(response)
ex.details = f"Unable to parse JSON: {e}"

raise ex
raise errors.BadResponseException(response, f"Unable to parse JSON: {e}")

return json_data

Expand Down

0 comments on commit a4106cd

Please sign in to comment.