fix filenotfound error

This commit is contained in:
Nexus 2023-03-16 23:31:38 +00:00
parent 3cc1be0e02
commit eb4169d6af

View file

@ -853,8 +853,9 @@ class OtherCog(commands.Cog):
return False
while should_loop():
last_3_sizes.pop(-1)
last_3_sizes.append(os.stat(target_fn).st_size)
if os.path.exists(target_fn):
last_3_sizes.pop(-1)
last_3_sizes.append(os.stat(target_fn).st_size)
sleep(3)
with open(target_fn, "rb") as f: