Skip to content

Commit

Permalink
Update sqs.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ehanson8 committed Dec 10, 2024
1 parent 06d5ad0 commit 0f65f5b
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions dsc/utilities/aws/sqs.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,11 +181,7 @@ def validate_message_attributes(sqs_message: MessageTypeDef) -> None:
"""
if (
"MessageAttributes" not in sqs_message
or not any(
field
for field in sqs_message["MessageAttributes"]
if "PackageID" in field
)
or "PackageID" not in sqs_message["MessageAttributes"]
or not sqs_message["MessageAttributes"]["PackageID"].get("StringValue")
):
message = f"Failed to parse SQS message attributes: {sqs_message}"
Expand Down

0 comments on commit 0f65f5b

Please sign in to comment.