aboutsummaryrefslogtreecommitdiff
path: root/modules/define.py
diff options
context:
space:
mode:
Diffstat (limited to 'modules/define.py')
-rw-r--r--modules/define.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/modules/define.py b/modules/define.py
index 9b8f3d14..b2714b12 100644
--- a/modules/define.py
+++ b/modules/define.py
@@ -58,9 +58,8 @@ class Module(ModuleManager.BaseModule):
if len(definition):
definition = definition[0]
else:
- event["stderr"].write("Try again in a couple of "
- "seconds")
- return
+ raise utils.EventError("Try again in a couple of seconds")
+
event["stdout"].write("Random Word: %s - Definition: %s" % (
page["word"], definition["text"]))
else: