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, )