Skip to content

Commit 8fc5b77

Browse files
mateuszmanderatimabbott
authored andcommitted
api: Fix undefined variable reference from previous commit.
1 parent 056963b commit 8fc5b77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

zulip/zulip/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def fail(self):
9595
# Exponential growth with ratio sqrt(2); compute random delay
9696
# between x and 2x where x is growing exponentially
9797
delay_scale = int(2 ** (self.number_of_retries / 2.0 - 1)) + 1
98-
delay = min(delay_scale + random.randint(1, delay_scale), delay_cap)
98+
delay = min(delay_scale + random.randint(1, delay_scale), self.delay_cap)
9999
message = "Sleeping for %ss [max %s] before retrying." % (delay, delay_scale * 2)
100100
try:
101101
logger.warning(message)

0 commit comments

Comments
 (0)