Skip to content

Commit

Permalink
Ensured APIError.data
Browse files Browse the repository at this point in the history
  • Loading branch information
Proxymiity committed May 26, 2021
1 parent 5592666 commit 01d4bfd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions MangaDexPy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ def __init__(self, r):
self.data = None
try:
self.data = r.json()
except Exception as e:
print(e)
except json.decoder.JSONDecodeError:
self.data = r.content


class NoContentError(APIError):
Expand Down

0 comments on commit 01d4bfd

Please sign in to comment.