mirror of
https://github.com/nexy7574/LCC-bot.git
synced 2024-09-19 18:16:34 +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]))
|
||||
except yt_dlp.utils.DownloadError as e:
|
||||
traceback.print_exc()
|
||||
return await ctx.edit(
|
||||
embed=discord.Embed(
|
||||
title="Error",
|
||||
|
@ -1011,6 +1012,7 @@ class OtherCog(commands.Cog):
|
|||
)
|
||||
shutil.move(str(bak), str(file))
|
||||
except subprocess.CalledProcessError as e:
|
||||
traceback.print_exc()
|
||||
return await ctx.edit(
|
||||
embed=discord.Embed(
|
||||
title="Error",
|
||||
|
|
Loading…
Reference in a new issue