Skip to content

Commit

Permalink
do not lock accounts on ConnectTimeout #113
Browse files Browse the repository at this point in the history
  • Loading branch information
vladkens committed Feb 10, 2024
1 parent a67cd1d commit 8ae10f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion twscrape/queue_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ async def req(self, method: str, url: str, params: ReqParams = None) -> Response
except (httpx.ReadTimeout, httpx.ProxyError):
# http transport failed, just retry with same account
continue
except httpx.ConnectError as e:
except (httpx.ConnectError, httpx.ConnectTimeout) as e:
# if proxy missconfigured or ???
connection_retry += 1
if connection_retry >= 3:
Expand Down

0 comments on commit 8ae10f2

Please sign in to comment.