not sure what else to do, so retrying curl

This commit is contained in:
jobevers 2017-02-22 16:47:30 -06:00
parent 01e19a457b
commit 498534a61e

View file

@ -81,6 +81,15 @@ def get_daemon_artifact():
def upload_asset(release, asset_to_upload, token):
count = 0
while count < 10:
try:
return _upload_asset(release, asset_to_upload, token)
except Exception:
count += 1
def _upload_asset(release, asset_to_upload, token):
basename = os.path.basename(asset_to_upload)
if is_asset_already_uploaded(release, basename):
return