FIx finish

This commit is contained in:
nexy7574 2023-05-11 19:04:41 +01:00
parent d7d6462d6d
commit b82fef4afc

View file

@ -1301,10 +1301,6 @@ class OtherCog(commands.Cog):
else:
file = target
st = file.stat().st_size
if st / 1024 / 1024 <= MAX_SIZE_MB and st < BYTES_REMAINING:
files.append(discord.File(file, file.name))
BYTES_REMAINING -= st
continue
if st / 1024 / 1024 >= MAX_SIZE_MB or st >= BYTES_REMAINING:
units = ["B", "KB", "MB", "GB", "TB"]
st_r = st