From e17500431e5de7cb2af4fa7f0241d786bec0bd43 Mon Sep 17 00:00:00 2001 From: Jacob Henry Date: Sat, 3 Nov 2018 22:51:26 -0400 Subject: [PATCH] Fixed minor error --- job_signoff.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/job_signoff.py b/job_signoff.py index cf41394..896e9bb 100644 --- a/job_signoff.py +++ b/job_signoff.py @@ -72,7 +72,8 @@ def alert_user(slack: SlackClient, name: str, saywhat: str) -> None: for slack_id in identifier.lookup_brother_userids(brother_dict): dm_id = slack_util.im_channel_for_id(slack, slack_id) if dm_id: - slack_util.reply(slack, None, saywhat, to_channel=dm_id, in_thread=False) + # Give a dummy msg dict, since we won't actually be using anything in it + slack_util.reply(slack, {}, saywhat, to_channel=dm_id, in_thread=False) else: print("Warning: unable to find dm for brother {}".format(brother_dict))