aboutsummaryrefslogtreecommitdiff
path: root/modules/eval_rust.py
diff options
context:
space:
mode:
authorGravatar jesopo2018-10-16 15:09:58 +0100
committerGravatar jesopo2018-10-16 15:09:58 +0100
commit773d11f6cbaa8da91185547b0ab67f3706d735c2 (patch)
treec46eb6709985ef7cdfb5bfe9b035fdbdedc4f91f /modules/eval_rust.py
parentOnly log exceptions when they're not unsafe (diff)
signature
Change all instances of stdout.write+return to `raise utils.EventError` in
modules
Diffstat (limited to 'modules/eval_rust.py')
-rw-r--r--modules/eval_rust.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/eval_rust.py b/modules/eval_rust.py
index 0b9d03d9..bddcdda2 100644
--- a/modules/eval_rust.py
+++ b/modules/eval_rust.py
@@ -33,9 +33,8 @@ class Module(ModuleManager.BaseModule):
page = utils.http.get_url(EVAL_URL, json_data=args,
method="POST", json=True)
except socket.timeout:
- event["stderr"].write("%s: eval timed out" %
+ raise utils.EventError("%s: eval timed out" %
event["user"].nickname)
- return
err_or_out = "stdout" if page["success"] else "stderr"
event[err_or_out].write("%s: %s" % (event["user"].nickname,