From f6cd32a2e804d26e79c2a5e6f5195f622c41e651 Mon Sep 17 00:00:00 2001 From: OniriCorpe Date: Sat, 16 Mar 2024 21:23:44 +0100 Subject: [PATCH] break line after each command option Co-authored-by: Salamandar <6552989+Salamandar@users.noreply.github.com> --- appslib/logging_sender.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/appslib/logging_sender.py b/appslib/logging_sender.py index acc1013..10c5823 100644 --- a/appslib/logging_sender.py +++ b/appslib/logging_sender.py @@ -19,10 +19,13 @@ def notify(message, channel): message = message.replace(char, "") try: - subprocess.call( - [ + subprocess.call([ "/var/www/webhooks/matrix-commander", - "--markdown -m '{message}' -c /var/www/webhooks/credentials.json --store /var/www/webhooks/store --room 'yunohost-{channel}'", + "--markdown", + "-m", message, + "-c", "/var/www/webhooks/credentials.json", + "--store", "/var/www/webhooks/store", + "--room", f"yunohost-{channel}", ], stdout=subprocess.DEVNULL, )