Skip to content

Commit 68ecc92

Browse files
committed
Handle JSONDecodeError correctly
1 parent 0c3a98a commit 68ecc92

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tidalapi/request.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def basic_request(self, method, path, params=None, data=None, headers=None):
6464
json_resp = None
6565
try:
6666
json_resp = request.json()
67-
except requests.JSONDecodeError:
67+
except json.decoder.JSONDecodeError:
6868
pass
6969

7070
if json_resp and json_resp.get("userMessage", "").startswith(

0 commit comments

Comments
 (0)