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 80d1a8a commit f169227
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/wfh-upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
def doUploadWrap(crate_path):
try:
return doUpload(crate_path)
except (requests.exceptions.SSLError, requests.exceptions.ConnectionError) as e
except (requests.exceptions.SSLError, requests.exceptions.ConnectionError) as e:
try:
time.sleep(5)
return doUpload(crate_path)
Expand Down Expand Up @@ -50,6 +50,7 @@ def doUpload(crate_path):
add_discussion_channel = False

wfid = response.json()['data']['id']
print(f"Uploaded {crate_path} as {wfid}")
permissions_update = {
"data": {
"id": wfid,
Expand Down

0 comments on commit f169227

Please sign in to comment.