#12 no sleep if an error occured with osmupdate

pull/14/head
Etienne Trimaille 2015-07-31 12:59:30 +02:00
rodzic 757f4f18ca
commit b50ef1fa59
1 zmienionych plików z 7 dodań i 4 usunięć

Wyświetl plik

@ -144,7 +144,10 @@ while True:
if call(command) != 0:
print >> stderr, 'An error occured in osmupdate.'
# Sleep
print 'Sleeping for %s seconds.' % default['TIME']
sleep(float(default['TIME']))
# Sleep less.
print 'Sleeping for 2 seconds.'
sleep(2.0)
else:
# Everything was fine, let's sleeping.
print 'Sleeping for %s seconds.' % default['TIME']
sleep(float(default['TIME']))