Closed liath closed 7 years ago
Something like this maybe?
logger.debug("parsing error: %s" % (e))
logger.warn("process_message discarding malformed message")
process_message
only has the message body unfortunately. Maybe we could let it throw and catch the exception in listen_for_messages_over_sqs
? Not familiar enough python to know if that would even work.
Should I merge myself? I'm used to my companies rules against merging your own changes lol
My hunch is as long as you get the thumbs up, you’re good to go on the merge.
That said, I went ahead and merged it so my neck is officially on the line, too. :-)
Thank you. I just felt like I might be treading too heavily, but you make a compelling point about sharing blame lol
wrapped JSON parse in a try-except