FIx yt-dl

This commit is contained in:
Nexus 2023-08-28 22:20:13 +01:00
parent 2339ad5157
commit 4ae0651e13
Signed by: nex
GPG key ID: 0FA334385D0B689F

View file

@ -983,13 +983,6 @@ class OtherCog(commands.Cog):
)
del logger
files = []
if upload_log:
if out_size := stdout.stat().st_size:
files.append(discord.File(stdout, "stdout.txt"))
BYTES_REMAINING -= out_size
if err_size := stderr.stat().st_size:
files.append(discord.File(stderr, "stderr.txt"))
BYTES_REMAINING -= err_size
for file in tempdir.glob(f"{ctx.user.id}-*"):
if file.stat().st_size == 0: