Adding six.string_types checking
This commit is contained in:
parent
a068a56972
commit
4d2b12f40d
@ -3,6 +3,7 @@ from __future__ import unicode_literals
|
|||||||
from moto.core.responses import BaseResponse
|
from moto.core.responses import BaseResponse
|
||||||
|
|
||||||
from .models import dynamodbstreams_backends
|
from .models import dynamodbstreams_backends
|
||||||
|
from six import string_types
|
||||||
|
|
||||||
|
|
||||||
class DynamoDBStreamsHandler(BaseResponse):
|
class DynamoDBStreamsHandler(BaseResponse):
|
||||||
@ -25,7 +26,7 @@ class DynamoDBStreamsHandler(BaseResponse):
|
|||||||
shard_iterator_type = self._get_param('ShardIteratorType')
|
shard_iterator_type = self._get_param('ShardIteratorType')
|
||||||
sequence_number = self._get_param('SequenceNumber')
|
sequence_number = self._get_param('SequenceNumber')
|
||||||
# according to documentation sequence_number param should be string
|
# according to documentation sequence_number param should be string
|
||||||
if isinstance(sequence_number, "".__class__):
|
if isinstance(sequence_number, string_types):
|
||||||
sequence_number = int(sequence_number)
|
sequence_number = int(sequence_number)
|
||||||
|
|
||||||
return self.backend.get_shard_iterator(arn, shard_id,
|
return self.backend.get_shard_iterator(arn, shard_id,
|
||||||
|
Loading…
Reference in New Issue
Block a user