The main SNS message handler incorrectly assumes that every message that was parsed using json.loads() without throwing an exception is of dict type, and then uses dict methods like .get() on the parsed object which eventually leads to a crash. In our case this has prevented us from sending a list of dicts, but there's more examples. This PR fixes it by handling the AttributeError exception
## GitHub Issues
Coverage remained the same at 72.975% when pulling 1e7d9c18ecbcf244219d14ddb80e9a690079f52e on protagonistllc:bugfix/non-dict-sns-message-handling into 542c8c60291ebc5ece03b8dd4abe9e0172715086 on Miserlou:master.
Description
The main SNS message handler incorrectly assumes that every message that was parsed using json.loads() without throwing an exception is of dict type, and then uses dict methods like .get() on the parsed object which eventually leads to a crash. In our case this has prevented us from sending a list of dicts, but there's more examples. This PR fixes it by handling the AttributeError exception ## GitHub Issueshttps://github.com/Miserlou/Zappa/issues/1466 https://github.com/Miserlou/Zappa/issues/1864