From 581b4969f59b8e1cf37e8cca342a0a6bcb4e02bb Mon Sep 17 00:00:00 2001 From: Min RK Date: Mon, 30 Jul 2018 14:33:02 +0200 Subject: [PATCH] traefik can give 502 while starting up --- tljh/installer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tljh/installer.py b/tljh/installer.py index 219fcf6..4c38b1e 100644 --- a/tljh/installer.py +++ b/tljh/installer.py @@ -262,7 +262,7 @@ def ensure_jupyterhub_running(times=4): urlopen('http://127.0.0.1') return except HTTPError as h: - if h.code in [404, 503]: + if h.code in [404, 502, 503]: # May be transient time.sleep(1) continue