mirror of
https://github.com/LBRYFoundation/lbry-desktop.git
synced 2025-09-16 23:39:47 +00:00
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):
|
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)
|
basename = os.path.basename(asset_to_upload)
|
||||||
if is_asset_already_uploaded(release, basename):
|
if is_asset_already_uploaded(release, basename):
|
||||||
return
|
return
|
||||||
|
|
Loading…
Add table
Reference in a new issue