Strip trailing newlines from scripts.py returns
This commit is contained in:
parent
1721e40c61
commit
c12e8220ac
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ class Module(object):
|
||||||
# execution of script expired
|
# execution of script expired
|
||||||
return
|
return
|
||||||
|
|
||||||
out = proc.stdout.read().decode("utf8")
|
out = proc.stdout.read().decode("utf8").strip("\n")
|
||||||
if out:
|
if out:
|
||||||
if proc.returncode == 0:
|
if proc.returncode == 0:
|
||||||
if "stdout" in event:
|
if "stdout" in event:
|
||||||
|
|
Loading…
Reference in a new issue