From 4e52199a9f471c7880f855a26bf7cf7466be6148 Mon Sep 17 00:00:00 2001 From: Morty Space Date: Mon, 23 May 2022 12:28:21 +0200 Subject: [PATCH] fix: updated exception handling for requests --- src/cryptocom/exchange/api.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/cryptocom/exchange/api.py b/src/cryptocom/exchange/api.py index edb0a06..1d9442c 100644 --- a/src/cryptocom/exchange/api.py +++ b/src/cryptocom/exchange/api.py @@ -222,8 +222,7 @@ class ApiProvider: ) except ( asyncio.TimeoutError, - httpx.ReadError, - httpx.ConnectError, + httpx.HTTPError, json.JSONDecodeError, ) as exc: if count == self.retries: