raplace a non working try by a simple if
This commit is contained in:
parent
c320396bc7
commit
5b6dc562c9
1 changed files with 2 additions and 4 deletions
|
@ -10,10 +10,8 @@ def notify(message, channel):
|
||||||
|
|
||||||
chan_list = ["dev", "apps", "doc"]
|
chan_list = ["dev", "apps", "doc"]
|
||||||
|
|
||||||
try:
|
if not any(channel in x for x in chan_list):
|
||||||
any(channel in x for x in chan_list)
|
logging.error(
|
||||||
except False:
|
|
||||||
logging.warning(
|
|
||||||
f"Provided chan '{channel}' is not part of the available options ('dev', 'apps', 'doc')."
|
f"Provided chan '{channel}' is not part of the available options ('dev', 'apps', 'doc')."
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue