error logging
This commit is contained in:
parent
fe3993bda8
commit
9345d005eb
1 changed files with 2 additions and 1 deletions
|
|
@ -24,7 +24,8 @@ class YoutubeDL(BotBaseCog):
|
||||||
logging.error(process.stderr.read())
|
logging.error(process.stderr.read())
|
||||||
logging.error(process.returncode)
|
logging.error(process.returncode)
|
||||||
await ctx.send(f"Downloading {video_or_audio} from {url}...", suppress_embeds=True)
|
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 <url> <video|audio>")
|
await ctx.send("Usage: !youtubedl <url> <video|audio>")
|
||||||
|
|
||||||
#create a task
|
#create a task
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue