mirror of
https://github.com/nexy7574/LCC-bot.git
synced 2024-09-19 18:16:34 +01:00
fix filenotfound error
This commit is contained in:
parent
3cc1be0e02
commit
eb4169d6af
1 changed files with 3 additions and 2 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue