mirror of
https://github.com/f-droid/fdroidserver.git
synced 2026-01-30 02:01:41 -05:00
deploy: retry virustotal 30 seconds after rate limiting, and log
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user