mirror of
https://github.com/jupyterhub/the-littlest-jupyterhub.git
synced 2025-12-18 21:54:05 +08:00
remove hard-coded constant from retry loop
This commit is contained in:
@@ -139,7 +139,7 @@ def ensure_jupyterhub_running(times=4):
|
|||||||
Loops given number of times, waiting a second each.
|
Loops given number of times, waiting a second each.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
for i in range(4):
|
for i in range(times):
|
||||||
try:
|
try:
|
||||||
print('Waiting for JupyterHub to come up ({}/{} tries)'.format(i + 1, times))
|
print('Waiting for JupyterHub to come up ({}/{} tries)'.format(i + 1, times))
|
||||||
urlopen('http://127.0.0.1')
|
urlopen('http://127.0.0.1')
|
||||||
|
|||||||
Reference in New Issue
Block a user