Merge pull request #2569 from gruebel/fix-sns-publish-number-type

Fix sns.publish with number type and 0 value
This commit is contained in:
Mike Grima 2019-11-16 10:24:09 -08:00 committed by GitHub
commit e70ad8fd12
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 22 additions and 1 deletions

View file

@ -77,7 +77,7 @@ class SNSResponse(BaseResponse):
transform_value = value["StringValue"]
elif "BinaryValue" in value:
transform_value = value["BinaryValue"]
if not transform_value:
if transform_value == "":
raise InvalidParameterValue(
"The message attribute '{0}' must contain non-empty "
"message attribute value for message attribute "