mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-25 12:08:40 +02:00
Update socket.py
This commit is contained in:
parent
a8dcb52897
commit
cc132cd17b
1 changed files with 1 additions and 1 deletions
|
@ -85,7 +85,7 @@ class Socket:
|
|||
should_retry = True
|
||||
if isinstance(err, LoginError):
|
||||
should_retry = err.should_retry()
|
||||
if should_retry and counter < 10:
|
||||
if should_retry and counter < 3:
|
||||
counter += 1
|
||||
sleep((counter * 50) / 1000) # sleep 50 ms to 150 ms
|
||||
else: # don't try again
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue