aboutsummaryrefslogtreecommitdiff
path: root/modules/soundcloud.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/soundcloud.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/soundcloud.py')
-rw-r--r--modules/soundcloud.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/soundcloud.py b/modules/soundcloud.py
index fd7300c3..20285222 100644
--- a/modules/soundcloud.py
+++ b/modules/soundcloud.py
@@ -33,8 +33,7 @@ class Module(ModuleManager.BaseModule):
last_soundcloud.message).string
if not query and not url:
- event["stderr"].write("no search phrase provided")
- return
+ raise utils.EventError("no search phrase provided")
has_query = not query == None
get_params = {"limit": 1,
"client_id": self.bot.config["soundcloud-api-key"]}