str(utils.EventError) should be written to stderr, not stdout

This commit is contained in:
jesopo 2018-10-16 15:15:20 +01:00
parent d07f9422f7
commit 547c57c8b8

View file

@ -172,7 +172,7 @@ class Module(ModuleManager.BaseModule):
args_split=args_split, stdout=stdout, stderr=stderr,
command=command.lower(), is_channel=is_channel)
except utils.EventError as e:
stdout.write(str(e))
stderr.write(str(e))
if not hook.kwargs.get("skip_out", False):
stdout.send()