fix linting errors

This commit is contained in:
Chris Keogh 2017-09-12 11:07:34 +12:00
parent 722859748e
commit 2a66ae2bfd

View File

@ -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: