From c9b21a2ddd389235cf8758fd03cf2b7a70d0e84c Mon Sep 17 00:00:00 2001 From: Jacob Henry Date: Tue, 20 Nov 2018 17:06:14 -0500 Subject: [PATCH] Made a generic Exception a ValueError --- slack_util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/slack_util.py b/slack_util.py index 9f68e98..151a20e 100644 --- a/slack_util.py +++ b/slack_util.py @@ -137,7 +137,7 @@ class Hook(AbsHook): elif self.channel_whitelist is None: pass # We leave as none to show no whitelisting in effect else: - raise Exception("Cannot whitelist and blacklist") + raise ValueError("Cannot whitelist and blacklist") def try_apply(self, slack: SlackClient, msg: dict) -> Optional[Coroutine[None, None, None]]: """