Skip to content

Commit e901674

Browse files
authored
py 3.4 compat
1 parent 4cbe387 commit e901674

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

stream_chat/exceptions.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
from json import JSONDecodeError
2-
3-
41
class StreamChannelException(Exception):
52
pass
63

@@ -17,7 +14,7 @@ def __init__(self, response):
1714
"message", "unknown"
1815
)
1916
self.json_response = True
20-
except JSONDecodeError:
17+
except ValueError:
2118
pass
2219

2320
def __str__(self):

0 commit comments

Comments
 (0)