We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 157429f + 54b03a7 commit 78318aeCopy full SHA for 78318ae
tools/upload_release_files.py
@@ -25,6 +25,9 @@
25
with open(full_filename, "rb") as f:
26
response = github.post(url, data=f, headers=headers)
27
if not response.ok:
28
+ if response.status_code == 422 and response.json().get("errors", [{"code":""}])[0]["code"] == "already_exists":
29
+ print("File already uploaded. Skipping.")
30
+ continue
31
print("Upload of {} failed with {}.".format(filename, response.status_code))
32
print(response.text)
33
sys.exit(response.status_code)
0 commit comments