From 547c57c8b8437fd161f6b42d79a70d2863b2af3e Mon Sep 17 00:00:00 2001 From: jesopo Date: Tue, 16 Oct 2018 15:15:20 +0100 Subject: [PATCH] str(utils.EventError) should be written to stderr, not stdout --- modules/commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/commands.py b/modules/commands.py index 455ba49b..ff85586a 100644 --- a/modules/commands.py +++ b/modules/commands.py @@ -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()