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)) res = re.search('\"\"', json.dumps(item))
if res: if res:
er = 'com.amazonaws.dynamodb.v20111205#ValidationException' er = 'com.amazonaws.dynamodb.v20111205#ValidationException'
return 400, {'server': 'amazon.com'}, dynamo_json_dump( return (400,
{'__type': er, {'server': 'amazon.com'},
'message': ('One or more parameter values were invalid: ' dynamo_json_dump({'__type': er,
'An AttributeValue may not contain an empty string')}) 'message': ('One or more parameter values were '
'invalid:An AttributeValue may not '
'contain an empty string')}
))
overwrite = 'Expected' not in self.body overwrite = 'Expected' not in self.body
if not overwrite: if not overwrite: