Forgot to actually return the URL

This commit is contained in:
Nexus 2024-01-09 09:57:41 +00:00
parent d53e1a5867
commit 2f120daed6
2 changed files with 2 additions and 0 deletions

1
.gitignore vendored
View file

@ -6,6 +6,7 @@
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
# User-specific stuff
.idea/workspace.xml
.idea/**/workspace.xml
.idea/**/tasks.xml
.idea/**/usage.statistics.xml

View file

@ -151,6 +151,7 @@ class YTDLCog(commands.Cog):
try:
url = message.attachments[attachment_index].url
self.log.debug("Found URL %r, returning.", url)
return url
except IndexError:
self.log.debug("Attachment index %d is out of range (%r)", attachment_index, message.attachments)
return