Merge pull request #26 from zecktos/patch-1

Fix for python3.9
This commit is contained in:
taizan-hokuto
2020-12-13 22:04:18 +09:00
committed by GitHub

View File

@@ -168,7 +168,7 @@ class PytchatCore:
with httpx.Client(http2=True) as client:
try:
response = client.post(self._fetch_url, json=param)
livechat_json = json.loads(response.text, encoding='utf-8')
livechat_json = json.loads(response.text)
break
except (json.JSONDecodeError, httpx.ConnectTimeout, httpx.ReadTimeout, httpx.ConnectError) as e:
err = e