fix linting errors
This commit is contained in:
parent
722859748e
commit
2a66ae2bfd
@ -148,10 +148,13 @@ class DynamoHandler(BaseResponse):
|
||||
res = re.search('\"\"', json.dumps(item))
|
||||
if res:
|
||||
er = 'com.amazonaws.dynamodb.v20111205#ValidationException'
|
||||
return 400, {'server': 'amazon.com'}, dynamo_json_dump(
|
||||
{'__type': er,
|
||||
'message': ('One or more parameter values were invalid: '
|
||||
'An AttributeValue may not contain an empty string')})
|
||||
return (400,
|
||||
{'server': 'amazon.com'},
|
||||
dynamo_json_dump({'__type': er,
|
||||
'message': ('One or more parameter values were '
|
||||
'invalid:An AttributeValue may not '
|
||||
'contain an empty string')}
|
||||
))
|
||||
|
||||
overwrite = 'Expected' not in self.body
|
||||
if not overwrite:
|
||||
|
Loading…
Reference in New Issue
Block a user