Strip trailing newlines from scripts.py returns

This commit is contained in:
jesopo 2018-09-29 09:46:47 +01:00
parent 1721e40c61
commit c12e8220ac

View file

@ -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: