1
0
Fork 0

raplace a non working try by a simple if

This commit is contained in:
OniriCorpe 2024-03-15 04:55:06 +01:00 committed by Salamandar
parent c320396bc7
commit 5b6dc562c9

View file

@ -10,10 +10,8 @@ def notify(message, channel):
chan_list = ["dev", "apps", "doc"]
try:
any(channel in x for x in chan_list)
except False:
logging.warning(
if not any(channel in x for x in chan_list):
logging.error(
f"Provided chan '{channel}' is not part of the available options ('dev', 'apps', 'doc')."
)