From 5560bc82e54d7699b7bee8652ee86ec98be0f82f Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Thu, 7 Nov 2019 19:44:35 +0100 Subject: [PATCH] Use command error in zawarudo --- royalnet/packs/royal/commands/zawarudo.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/royalnet/packs/royal/commands/zawarudo.py b/royalnet/packs/royal/commands/zawarudo.py index f4f0bd4f..dfebe3e9 100644 --- a/royalnet/packs/royal/commands/zawarudo.py +++ b/royalnet/packs/royal/commands/zawarudo.py @@ -32,8 +32,7 @@ class ZawarudoCommand(Command): guild = list(bot.client.guilds)[0] # Ensure the guild has a PlayMode before adding the file to it if not bot.music_data.get(guild): - # TODO: change Exception - raise Exception("No music_data for this guild") + raise CommandError("No music_data for this guild") # Create url ytdl_args = { "format": "bestaudio",