Made a generic Exception a ValueError
This commit is contained in:
+1
-1
@@ -137,7 +137,7 @@ class Hook(AbsHook):
|
|||||||
elif self.channel_whitelist is None:
|
elif self.channel_whitelist is None:
|
||||||
pass # We leave as none to show no whitelisting in effect
|
pass # We leave as none to show no whitelisting in effect
|
||||||
else:
|
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]]:
|
def try_apply(self, slack: SlackClient, msg: dict) -> Optional[Coroutine[None, None, None]]:
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user