From c24b536bd954fe1263004e58302c3a84df6cfb2c Mon Sep 17 00:00:00 2001 From: Romain Primet Date: Fri, 13 Jul 2018 16:29:30 +0200 Subject: [PATCH] handle 503 as well --- tljh/installer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tljh/installer.py b/tljh/installer.py index 0ceb417..51205e3 100644 --- a/tljh/installer.py +++ b/tljh/installer.py @@ -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