remove hard-coded constant from retry loop

This commit is contained in:
Romain Primet
2018-07-13 15:36:44 +02:00
parent aa3630527b
commit 7c245d0868

View File

@@ -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')