Skip to content

Commit

Permalink
Updates based on discussion in PR #48
Browse files Browse the repository at this point in the history
  • Loading branch information
ehanson8 committed Feb 9, 2022
1 parent 25b2054 commit 53213f2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion awd/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,11 @@ def listen(
.get("PackageID", {})
.get("StringValue")
)
body = json.loads(message.get("Body"))
try:
body = json.loads(message.get("Body"))
except ValueError:
logger.error(f"Failed to parse body of message: {message}")
continue
if body["ResultType"] == "error":
logger.error(f"DOI: {doi}, Result: {body}")
sqs.delete(
Expand Down

0 comments on commit 53213f2

Please sign in to comment.