Update jupyterhub/utils.py

Co-authored-by: Erik Sundell <erik.i.sundell@gmail.com>
This commit is contained in:
Tim Kreuzer
2020-10-13 10:30:05 +02:00
committed by GitHub
parent c97e4d4e2f
commit 0f0d6d12d3

View File

@@ -174,7 +174,7 @@ async def exponential_backoff(
# Except Overflow Error. Otherwise start_wait * scale will be too big at some point.
try:
if scale == 0:
dt = min(max_wait, remaining))
dt = min(max_wait, remaining)
else:
dt = min(max_wait, remaining, random.uniform(0, start_wait * scale))
except OverflowError: