Also capture stderr from scripts in modules/scripts.py

This commit is contained in:
jesopo 2018-10-07 08:22:46 +01:00
parent dc37eb4f2f
commit 02c3a5c336

View file

@ -43,7 +43,8 @@ class Module(object):
elif isinstance(value, (IRCObject.Object,)):
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:
proc.wait(5)
except subprocess.TimeoutExpired: