diff --git a/DiscordCogs/MusicCog.py b/DiscordCogs/MusicCog.py index 0e78b72..153a844 100644 --- a/DiscordCogs/MusicCog.py +++ b/DiscordCogs/MusicCog.py @@ -48,7 +48,7 @@ async def play(self, ctx: Context, *args) -> None: if len(args) > 1: track = " ".join(args) else: - track = args + track = args[0] response = await controller.run(track) if response is not None: diff --git a/Handlers/PlayHandler.py b/Handlers/PlayHandler.py index 0f5b6a4..7003689 100644 --- a/Handlers/PlayHandler.py +++ b/Handlers/PlayHandler.py @@ -1,4 +1,5 @@ import asyncio +import traceback from typing import List from Config.Exceptions import DownloadingError, InvalidInput, VulkanError from discord.ext.commands import Context @@ -28,7 +29,6 @@ async def run(self, track: str) -> HandlerResponse: error = ImpossibleMove() embed = self.embeds.NO_CHANNEL() return HandlerResponse(self.ctx, embed, error) - try: # Search for musics and get the name of each song musicsInfo = await self.__searcher.search(track) @@ -93,10 +93,12 @@ async def run(self, track: str) -> HandlerResponse: return HandlerResponse(self.ctx, embed, error) except Exception as error: if isinstance(error, VulkanError): # If error was already processed - print(f'DEVELOPER NOTE -s> PlayController Error: {error.message}', {type(error)}) + print( + f'DEVELOPER NOTE -s> PlayController Error: {traceback.format_exc()}', {type(error)}) embed = self.embeds.CUSTOM_ERROR(error) else: - print(f'DEVELOPER NOTE -> PlayController Error: {error}, {type(error)}') + print( + f'DEVELOPER NOTE -> PlayController Error: {traceback.format_exc()}, {type(error)}') error = UnknownError() embed = self.embeds.UNKNOWN_ERROR()