Skip to content

Commit

Permalink
expand acceptable errors
Browse files Browse the repository at this point in the history
  • Loading branch information
hexylena committed Jun 26, 2024
1 parent f3dc145 commit 80d1a8a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/wfh-upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@
def doUploadWrap(crate_path):
try:
return doUpload(crate_path)
except requests.exceptions.SSLError as e:
except (requests.exceptions.SSLError, requests.exceptions.ConnectionError) as e
try:
time.sleep(5)
return doUpload(crate_path)
except requests.exceptions.SSLError as e:
except (requests.exceptions.SSLError, requests.exceptions.ConnectionError) as e:
print(f"Error uploading {crate_path}: {e}")
return None

Expand Down

0 comments on commit 80d1a8a

Please sign in to comment.