Skip to content

Commit 6e48150

Browse files
authored
py 3.4 compat
1 parent 2537fd2 commit 6e48150

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

stream_chat/client.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import json
2-
from json import JSONDecodeError
32

43
import requests
54
import six
@@ -43,7 +42,7 @@ def get_default_params(self):
4342
def _parse_response(self, response):
4443
try:
4544
parsed_result = json.loads(response.text) if response.text else {}
46-
except JSONDecodeError:
45+
except ValueError:
4746
raise StreamAPIException(response)
4847
if response.status_code >= 399:
4948
raise StreamAPIException(response)

0 commit comments

Comments
 (0)