Fixed retry when we have too many requests

api-breakage
Morty Space 6 years ago
parent 1df3793ce1
commit 65daff5eff
  1. 3
      src/cryptocom/exchange/api.py

@ -113,6 +113,9 @@ class ApiProvider:
await asyncio.sleep(1)
continue
except ContentTypeError:
if resp.status == 429:
await asyncio.sleep(1)
continue
text = await resp.text()
raise ApiError(
f"Can't decode json, content: {text}. "

Loading…
Cancel
Save