1
0
Fork 0
mirror of synced 2024-06-23 08:40:41 +12:00

Added an error check for if there is no result, based on search terms

This commit is contained in:
phxntxm 2016-08-22 23:57:59 -05:00
parent 171d57d259
commit 7cbb788668

View file

@ -281,6 +281,10 @@ class Music:
fmt = "Sorry, either I had an issue downloading that video, or that's not a supported URL!"
await self.bot.send_message(ctx.message.channel, fmt)
return
except IndexError:
fmt = "Sorry, but there's no result with that search time! Try something else"
await self.bot.say(fmt)
return
# Now we can create a VoiceEntry and queue it
entry = VoiceEntry(ctx.message, player)