Fix sns.publish with number type and 0 value
This commit is contained in:
parent
dddb9dd4d2
commit
3d5d477f7f
2 changed files with 22 additions and 1 deletions
|
|
@ -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 "
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue