Also capture stderr from scripts in modules/scripts.py
This commit is contained in:
parent
dc37eb4f2f
commit
02c3a5c336
1 changed files with 2 additions and 1 deletions
|
@ -43,7 +43,8 @@ class Module(object):
|
||||||
elif isinstance(value, (IRCObject.Object,)):
|
elif isinstance(value, (IRCObject.Object,)):
|
||||||
env[key.upper()] = str(value)
|
env[key.upper()] = str(value)
|
||||||
|
|
||||||
proc = subprocess.Popen([filename], stdout=subprocess.PIPE, env=env)
|
proc = subprocess.Popen([filename], env=env,
|
||||||
|
stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
|
||||||
try:
|
try:
|
||||||
proc.wait(5)
|
proc.wait(5)
|
||||||
except subprocess.TimeoutExpired:
|
except subprocess.TimeoutExpired:
|
||||||
|
|
Loading…
Reference in a new issue