From 7c245d08687218707fa1e010d7abc1afeba13d09 Mon Sep 17 00:00:00 2001 From: Romain Primet Date: Fri, 13 Jul 2018 15:36:44 +0200 Subject: [PATCH] remove hard-coded constant from retry loop --- tljh/installer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tljh/installer.py b/tljh/installer.py index 1152867..4dd94fd 100644 --- a/tljh/installer.py +++ b/tljh/installer.py @@ -139,7 +139,7 @@ def ensure_jupyterhub_running(times=4): Loops given number of times, waiting a second each. """ - for i in range(4): + for i in range(times): try: print('Waiting for JupyterHub to come up ({}/{} tries)'.format(i + 1, times)) urlopen('http://127.0.0.1')