1
0
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:
Hans-Christoph Steiner 2020-03-03 14:41:38 +01:00
parent b7901952a1
commit a1e17d2b2c
No known key found for this signature in database
GPG Key ID: 3E177817BA1B9BFA

View File

@ -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: