fix: updated exception handling for requests

api-breakage
Morty Space 4 years ago
parent 12d0c250a0
commit 4e52199a9f
  1. 3
      src/cryptocom/exchange/api.py

@ -222,8 +222,7 @@ class ApiProvider:
) )
except ( except (
asyncio.TimeoutError, asyncio.TimeoutError,
httpx.ReadError, httpx.HTTPError,
httpx.ConnectError,
json.JSONDecodeError, json.JSONDecodeError,
) as exc: ) as exc:
if count == self.retries: if count == self.retries:

Loading…
Cancel
Save