Integrate httpx exceptions

This commit is contained in:
taizan-hokouto
2020-10-26 23:39:33 +09:00
parent 90596be880
commit 499cf26fa8
4 changed files with 5 additions and 7 deletions

View File

@@ -241,7 +241,7 @@ class LiveChat:
try:
livechat_json = client.get(url, headers=headers).json()
break
except (json.JSONDecodeError, httpx.TimeoutError):
except (json.JSONDecodeError, httpx.HTTPError):
time.sleep(2)
continue
else: