Skip to content

Commit

Permalink
Backport PR #4733: Catch ValueError while waiting for server to be re…
Browse files Browse the repository at this point in the history
…achable
  • Loading branch information
minrk authored and meeseeksmachine committed Mar 19, 2024
1 parent 63e118f commit 715c859
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions jupyterhub/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,8 @@ async def is_reachable():
errno.ECONNRESET,
}:
app_log.warning("Failed to connect to %s (%s)", url, e)
except Exception as e:
app_log.warning("Error while waiting for server %s (%s)", url, e)
return False

re = await exponential_backoff(
Expand Down

0 comments on commit 715c859

Please sign in to comment.