mirror of
https://github.com/nexy7574/LCC-bot.git
synced 2024-09-20 02:26:32 +01:00
Print errors to console with yt-dl
This commit is contained in:
parent
e53ec7ef51
commit
ea2645ef37
1 changed files with 2 additions and 0 deletions
|
@ -966,6 +966,7 @@ class OtherCog(commands.Cog):
|
||||||
)
|
)
|
||||||
await self.bot.loop.run_in_executor(None, partial(downloader.download, [url]))
|
await self.bot.loop.run_in_executor(None, partial(downloader.download, [url]))
|
||||||
except yt_dlp.utils.DownloadError as e:
|
except yt_dlp.utils.DownloadError as e:
|
||||||
|
traceback.print_exc()
|
||||||
return await ctx.edit(
|
return await ctx.edit(
|
||||||
embed=discord.Embed(
|
embed=discord.Embed(
|
||||||
title="Error",
|
title="Error",
|
||||||
|
@ -1011,6 +1012,7 @@ class OtherCog(commands.Cog):
|
||||||
)
|
)
|
||||||
shutil.move(str(bak), str(file))
|
shutil.move(str(bak), str(file))
|
||||||
except subprocess.CalledProcessError as e:
|
except subprocess.CalledProcessError as e:
|
||||||
|
traceback.print_exc()
|
||||||
return await ctx.edit(
|
return await ctx.edit(
|
||||||
embed=discord.Embed(
|
embed=discord.Embed(
|
||||||
title="Error",
|
title="Error",
|
||||||
|
|
Loading…
Reference in a new issue