mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-23 19:44:20 +00:00
Use command error in zawarudo
This commit is contained in:
parent
16c5435ead
commit
5560bc82e5
1 changed files with 1 additions and 2 deletions
|
@ -32,8 +32,7 @@ class ZawarudoCommand(Command):
|
||||||
guild = list(bot.client.guilds)[0]
|
guild = list(bot.client.guilds)[0]
|
||||||
# Ensure the guild has a PlayMode before adding the file to it
|
# Ensure the guild has a PlayMode before adding the file to it
|
||||||
if not bot.music_data.get(guild):
|
if not bot.music_data.get(guild):
|
||||||
# TODO: change Exception
|
raise CommandError("No music_data for this guild")
|
||||||
raise Exception("No music_data for this guild")
|
|
||||||
# Create url
|
# Create url
|
||||||
ytdl_args = {
|
ytdl_args = {
|
||||||
"format": "bestaudio",
|
"format": "bestaudio",
|
||||||
|
|
Loading…
Reference in a new issue