fix filenotfound error

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

View file

@ -853,6 +853,7 @@ class OtherCog(commands.Cog):
return False return False
while should_loop(): while should_loop():
if os.path.exists(target_fn):
last_3_sizes.pop(-1) last_3_sizes.pop(-1)
last_3_sizes.append(os.stat(target_fn).st_size) last_3_sizes.append(os.stat(target_fn).st_size)
sleep(3) sleep(3)