Skip to content

Commit 8818189

Browse files
glenscCopilot
andauthored
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 86fb3fa commit 8818189

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

trakt/errors.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,13 +77,11 @@ def __init__(self, response=None):
7777

7878
@staticmethod
7979
def _load_data(response):
80-
from json import JSONDecodeError
81-
8280
if response is None:
8381
return {}
8482
try:
8583
data = response.json()
86-
except (ValueError, JSONDecodeError, AttributeError):
84+
except (ValueError, AttributeError):
8785
return {}
8886
if not isinstance(data, dict):
8987
return {}

0 commit comments

Comments
 (0)