From c15db9f94597a57530bae818a41aee7b89650d28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cat=20Lee=20Ball=20=F0=9F=8E=B7=F0=9F=90=9B?= Date: Wed, 20 Mar 2019 13:16:35 -0700 Subject: [PATCH] Explicitly cast config.get to float --- boto/connection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boto/connection.py b/boto/connection.py index 34b428f101..85d12d3f75 100644 --- a/boto/connection.py +++ b/boto/connection.py @@ -923,7 +923,7 @@ def _mexe(self, request, sender=None, override_num_retries=None, while i <= num_retries: # Use binary exponential backoff to desynchronize client requests. next_sleep = min(random.random() * (2 ** i), - boto.config.get('Boto', 'max_retry_delay', 60)) + float(boto.config.get('Boto', 'max_retry_delay', 60))) try: # we now re-sign each request before it is retried boto.log.debug('Token: %s' % self.provider.security_token)