From f3e3993d2ecb6b4e57aa7e98ec42412d60ac8ba1 Mon Sep 17 00:00:00 2001 From: Blake DeMarcy Date: Fri, 21 Apr 2017 03:17:18 -0500 Subject: [PATCH] be nicer and less assertive --- src/formatting.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/formatting.py b/src/formatting.py index 0073140..c00b0ec 100644 --- a/src/formatting.py +++ b/src/formatting.py @@ -180,7 +180,7 @@ def apply_formatting(msg_obj, formatter): documentation for each formatter. """ for x, obj in enumerate(msg_obj): - if not msg_obj[x]["send_raw"]: + if not msg_obj[x].get("send_raw"): msg_obj[x]["body"] = formatter(obj["body"]) return msg_obj