Skip to content

Commit

Permalink
fix test_email_address()
Browse files Browse the repository at this point in the history
fixes 12419b6, closes #2459
  • Loading branch information
Changaco committed Sep 29, 2024
1 parent d24ce50 commit 97e1bf9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions liberapay/utils/emails.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,11 +222,11 @@ def test_email_address(email: NormalizedEmailAddress, timeout: float = 30.0):
website.tell_sentry(e)
exceptions.append(e)
n_attempts += 1
if n_attempts >= 3:
if n_attempts >= 10:
break
time_elapsed = time.monotonic() - start_time
timeout = website.app_conf.socket_timeout - time_elapsed
if timeout <= 3:
timeout -= time_elapsed
if timeout < 2:
break
if not success:
if n_ip_addresses == 0:
Expand Down

0 comments on commit 97e1bf9

Please sign in to comment.