Skip to content
This repository has been archived by the owner on Dec 16, 2021. It is now read-only.

Commit

Permalink
Properly protect against unknown channel
Browse files Browse the repository at this point in the history
  • Loading branch information
spladug committed May 25, 2020
1 parent c9f1371 commit b7bb8c1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions harold/plugins/slack.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,7 @@ def replace_channel_mention(m):
channel = channels_by_name[channel_name]
except KeyError:
print("Attempted to send message to unknown channel: %s" % channel_name)
return

try:
yield self._api_client.make_request(
Expand Down

0 comments on commit b7bb8c1

Please sign in to comment.