From 9345d005ebc8414ccb1d9a9ebc4f74c89587ed63 Mon Sep 17 00:00:00 2001 From: Phixxy Date: Wed, 4 Sep 2024 22:23:58 -0700 Subject: [PATCH] error logging --- cogs/ytdl.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cogs/ytdl.py b/cogs/ytdl.py index 00aaccc..cc7f1c2 100644 --- a/cogs/ytdl.py +++ b/cogs/ytdl.py @@ -24,7 +24,8 @@ class YoutubeDL(BotBaseCog): logging.error(process.stderr.read()) logging.error(process.returncode) await ctx.send(f"Downloading {video_or_audio} from {url}...", suppress_embeds=True) - except: + except Exception as e: + await ctx.send(f"Error: {e}") await ctx.send("Usage: !youtubedl ") #create a task