Made a generic Exception a ValueError

This commit is contained in:
Jacob Henry 2018-11-20 17:06:14 -05:00
parent 9b696ddbc4
commit c9b21a2ddd
1 changed files with 1 additions and 1 deletions

View File

@ -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]]:
"""