Made a generic Exception a ValueError
This commit is contained in:
parent
9b696ddbc4
commit
c9b21a2ddd
|
|
@ -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]]:
|
||||||
"""
|
"""
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue