Skip to content

Commit

Permalink
convert: remove commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
lifehackerhansol committed Nov 5, 2023
1 parent 0320a1e commit 16d85e9
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions cogs/convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,6 @@ async def download_media(self, ctx, filelink):
return 4
file = await r.read()
fileName = f"downloads/{ctx.message.id}_{yarl.URL(filelink).path.replace('/', '_')}"
#if filelink.find('/'):
# fileName = f"downloads/{filelink.rsplit('/', 1)[1]}"
try:
open(fileName, 'wb').write(file)
except Exception:
Expand Down

0 comments on commit 16d85e9

Please sign in to comment.