Fixed minor error

This commit is contained in:
Jacob Henry 2018-11-03 22:51:26 -04:00
parent 82de090c7f
commit e17500431e
1 changed files with 2 additions and 1 deletions

View File

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