Skip to content

Commit

Permalink
Explicitly cast config.get to float
Browse files Browse the repository at this point in the history
  • Loading branch information
Cat Lee Ball 🎷🐛 committed Mar 20, 2019
1 parent b71feb4 commit c15db9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion boto/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c15db9f

Please sign in to comment.