mirror of https://github.com/noisymime/Arduino.git
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 requests
|
||||||
import getpass
|
import getpass
|
||||||
import sys
|
import sys
|
||||||
|
import time
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
print 'Use your account to talk with Transifex.'
|
print 'Use your account to talk with Transifex.'
|
||||||
|
@ -36,6 +37,7 @@ def pull(trans, lang, fname):
|
||||||
return
|
return
|
||||||
except requests.exceptions.HTTPError, e:
|
except requests.exceptions.HTTPError, e:
|
||||||
print " *** Retrying %s from Transifex...\n" % fname,
|
print " *** Retrying %s from Transifex...\n" % fname,
|
||||||
|
time.sleep(3)
|
||||||
sys.stdout.flush()
|
sys.stdout.flush()
|
||||||
|
|
||||||
if count >= 5:
|
if count >= 5:
|
||||||
|
|
Loading…
Reference in New Issue