Skip to content

Commit ffb3555

Browse files
SalamandarOniriCorpe
authored andcommitted
Handle non existing executable for logging_sender.py
1 parent fe1b9e8 commit ffb3555

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tools/appslib/logging_sender.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ def notify(message: str, channel: str, markdown: bool = False) -> None:
3434

3535
try:
3636
subprocess.call(command, stdout=subprocess.DEVNULL)
37+
except FileNotFoundError:
38+
logging.warning("The logging sender tool /var/www/webhooks/matrix-commander does not exist.")
3739
except subprocess.CalledProcessError as e:
3840
logging.warning(
3941
f"""Could not send a notification on {channel}.

0 commit comments

Comments
 (0)