зеркало из
https://github.com/viginum-datalab/twscrape.git
synced 2025-10-29 21:16:25 +02:00
infinite retry for http timeout / proxy error (was lock account for some long time)
Этот коммит содержится в:
родитель
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:
|
||||
|
||||
Загрузка…
x
Ссылка в новой задаче
Block a user