Skip to content

Commit

Permalink
raplace a non working try by a simple if
Browse files Browse the repository at this point in the history
  • Loading branch information
OniriCorpe committed Mar 15, 2024
1 parent cf9ed4a commit 0bc22b3
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tools/appslib/logging_sender.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')."
)

Expand Down

0 comments on commit 0bc22b3

Please sign in to comment.