fix hub api url in extension check_hub_version

This commit is contained in:
Min RK
2023-02-14 16:55:03 +01:00
parent 5f9283c7c0
commit a43757bc1a

View File

@@ -332,11 +332,11 @@ class JupyterHubSingleUser(ExtensionApp):
RETRIES = 5 RETRIES = 5
for i in range(1, RETRIES + 1): for i in range(1, RETRIES + 1):
try: try:
resp = await client.fetch(self.hub_api_url) resp = await client.fetch(self.hub_auth.api_url)
except Exception: except Exception:
self.log.exception( self.log.exception(
"Failed to connect to my Hub at %s (attempt %i/%i). Is it running?", "Failed to connect to my Hub at %s (attempt %i/%i). Is it running?",
self.hub_api_url, self.hub_auth.api_url,
i, i,
RETRIES, RETRIES,
) )