diff options
| author | 2018-10-16 15:09:58 +0100 | |
|---|---|---|
| committer | 2018-10-16 15:09:58 +0100 | |
| commit | 773d11f6cbaa8da91185547b0ab67f3706d735c2 (patch) | |
| tree | c46eb6709985ef7cdfb5bfe9b035fdbdedc4f91f /modules/define.py | |
| parent | Only 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/define.py')
| -rw-r--r-- | modules/define.py | 5 |
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: |
