handle 503 as well

This commit is contained in:
Romain Primet
2018-07-13 16:29:30 +02:00
parent baef6d0bd9
commit c24b536bd9

View File

@@ -153,7 +153,7 @@ def ensure_jupyterhub_running(times=4):
# Everything else should immediately abort
raise
except HTTPError as h:
if h.code == 404:
if h.code in [404, 503]:
# May be transient
time.sleep(1)
continue