From 773d11f6cbaa8da91185547b0ab67f3706d735c2 Mon Sep 17 00:00:00 2001 From: jesopo Date: Tue, 16 Oct 2018 15:09:58 +0100 Subject: Change all instances of stdout.write+return to `raise utils.EventError` in modules --- modules/soundcloud.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'modules/soundcloud.py') 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"]} -- cgit v1.3.1-10-gc9f91