1
0
Fork 0
mirror of synced 2024-06-01 10:19:38 +12:00

Added a check for the invalid ipv6 error that youtube_dl throws

This commit is contained in:
phxntxm 2016-09-19 13:19:15 -05:00
parent 1318fce81a
commit fc921710cf

View file

@ -308,6 +308,11 @@ class Music:
fmt = "Sorry, but there's no result with that search time! Try something else"
await self.bot.send_message(ctx.message.channel, fmt)
return
except ValueError:
fmt = "Brackets are my enemy; please remove them or else!\n" \
"(Youtube_dl errors when brackets are used, try running this again without the brackets)"
await self.bot.send_message(ctx.message.channel, fmt)
return
# Now we can create a VoiceEntry and queue it
entry = VoiceEntry(ctx.message, player)