From c12e8220ac99adb369bf96e515c675c277f708bf Mon Sep 17 00:00:00 2001 From: jesopo Date: Sat, 29 Sep 2018 09:46:47 +0100 Subject: [PATCH] Strip trailing newlines from scripts.py returns --- modules/scripts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/scripts.py b/modules/scripts.py index bb9f8fb8..2025f067 100644 --- a/modules/scripts.py +++ b/modules/scripts.py @@ -31,7 +31,7 @@ class Module(object): # execution of script expired return - out = proc.stdout.read().decode("utf8") + out = proc.stdout.read().decode("utf8").strip("\n") if out: if proc.returncode == 0: if "stdout" in event: