Skip to content

Commit b546868

Browse files
committedMar 28, 2018
use any status code which is not 200 to sleep, nginx was returning unexpected 502 instead of 404

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎otsserver/backup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ def loop(self):
244244
logging.error("Exception asking " + str(backup_url) + " message " + str(err))
245245
break
246246

247-
if r.status_code == 404:
247+
if r.status_code != 200:
248248
logging.info("%s not found, sleeping for %s seconds" % (backup_url, SLEEP_SECS) )
249249
time.sleep(SLEEP_SECS)
250250
continue

0 commit comments

Comments
 (0)
Please sign in to comment.