mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-10-06 09:21:07 +03:00
deploy: retry virustotal 30 seconds after rate limiting, and log
This commit is contained in:
parent
b7901952a1
commit
a1e17d2b2c
1 changed files with 2 additions and 1 deletions
|
@ -573,7 +573,8 @@ def upload_apk_to_virustotal(virustotal_apikey, packageName, apkName, hash,
|
|||
+ '\n\t' + response['permalink'])
|
||||
break
|
||||
elif r.status_code == 204:
|
||||
time.sleep(10) # wait for public API rate limiting
|
||||
logging.warning(_('virustotal.com is rate limiting, waiting to retry...'))
|
||||
time.sleep(30) # wait for public API rate limiting
|
||||
|
||||
upload_url = None
|
||||
if needs_file_upload:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue