Skip to content

Commit

Permalink
Handle ConnectionResetError
Browse files Browse the repository at this point in the history
  • Loading branch information
JackGilmore authored May 23, 2024
1 parent 75f3453 commit cb3a5bd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tools/alive.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ def handle_error(row):
except URLError as e:
print(f"Got status code {e.reason} for {req.full_url}")
handle_error(row)
except ConnectionResetError as e:
print(f"Got ConnectionResetError {e.errno } for {req.full_url}")
handle_error(row)

# Add small wait so we're not hammering similar hosts
time.sleep(5)
Expand Down

0 comments on commit cb3a5bd

Please sign in to comment.