infinite retry for http timeout / proxy error (was lock account for some long time)

Этот коммит содержится в:
Vlad Pronsky 2023-07-30 15:15:20 +03:00
родитель e87e4ea6da
Коммит 8f28bd1258

Просмотреть файл

@ -190,6 +190,9 @@ class QueueClient:
except (RateLimitError, BannedError):
# already handled
continue
except (httpx.ReadTimeout, httpx.ProxyError):
# http transport failed, just retry
continue
except Exception as e:
retry_count += 1
if retry_count >= 3: