be nicer and less assertive

pull/4/head
Blake DeMarcy 2017-04-21 03:17:18 -05:00
parent a2fae6ba8b
commit f3e3993d2e
1 changed files with 1 additions and 1 deletions

View File

@ -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