mirror of
https://github.com/arduino/Arduino.git
synced 2025-01-17 06:52:18 +01:00
Pulling from transifex: waiting 3 seconds before retrying
This commit is contained in:
parent
8e2c3c777c
commit
f1bed21d1a
@ -5,6 +5,7 @@ from transifex import Transifex
|
||||
import requests
|
||||
import getpass
|
||||
import sys
|
||||
import time
|
||||
|
||||
def main():
|
||||
print 'Use your account to talk with Transifex.'
|
||||
@ -36,6 +37,7 @@ def pull(trans, lang, fname):
|
||||
return
|
||||
except requests.exceptions.HTTPError, e:
|
||||
print " *** Retrying %s from Transifex...\n" % fname,
|
||||
time.sleep(3)
|
||||
sys.stdout.flush()
|
||||
|
||||
if count >= 5:
|
||||
|
Loading…
x
Reference in New Issue
Block a user