Forgot to actually return the URL
This commit is contained in:
parent
d53e1a5867
commit
2f120daed6
2 changed files with 2 additions and 0 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue