def _retry_handler(self, response, i, next_sleep):
        status = None
        if response.status == 400:
            response_body = response.read()
            boto.log.debug(response_body)
            data = json.loads(response_body)
            if self.ThruputError in data.get('__type'):
                self.throughput_exceeded_events += 1
                msg = "%s, retry attempt %s" % (self.ThruputError, i)
                if i == 0:
                    next_sleep = 0
                else:
                    next_sleep = 0.05 * (2 ** i)
                i += 1
                status = (msg, i, next_sleep)
            elif self.SessionExpiredError in data.get('__type'):
                msg = 'Renewing Session Token'
                self.creds = self._get_session_token()
                self._update_provider()
                status = (msg, i + self.num_retries - 1, 0)
            elif data.get('__type') in self.ConditionalCheckFailedError:
                raise dynamodb_exceptions.DynamoDBConditionalCheckFailedError(
                    response.status, response.reason, data)
            elif self.ValidationError in data.get('__type'):
                raise dynamodb_exceptions.DynamoDBValidationError(
                    response.status, response.reason, data)
            else:
                raise self.ResponseError(response.status, response.reason,
                                         data)
        return status
dataset/ETHPy150Open darcyliu/storyboard/boto/dynamodb/layer1.py/Layer1._retry_handler/swapped operands of `in`