We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2537fd2 commit 6e48150Copy full SHA for 6e48150
stream_chat/client.py
@@ -1,5 +1,4 @@
1
import json
2
-from json import JSONDecodeError
3
4
import requests
5
import six
@@ -43,7 +42,7 @@ def get_default_params(self):
43
42
def _parse_response(self, response):
44
try:
45
parsed_result = json.loads(response.text) if response.text else {}
46
- except JSONDecodeError:
+ except ValueError:
47
raise StreamAPIException(response)
48
if response.status_code >= 399:
49
0 commit comments