mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-08-15 10:50:09 +02:00
deploy: retry virustotal 30 seconds after rate limiting, and log
This commit is contained in:
parent
b7901952a1
commit
a1e17d2b2c
@ -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…
Reference in New Issue
Block a user