not sure what else to do, so retrying curl
This commit is contained in:
parent
01e19a457b
commit
498534a61e
1 changed files with 9 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue