Pulling from transifex: waiting 3 seconds before retrying

This commit is contained in:
Federico Fissore 2015-07-01 12:58:28 +02:00
parent 8e2c3c777c
commit f1bed21d1a
1 changed files with 2 additions and 0 deletions

View File

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