mirror of
https://github.com/nexy7574/LCC-bot.git
synced 2024-09-20 02:26:32 +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
|
return False
|
||||||
|
|
||||||
while should_loop():
|
while should_loop():
|
||||||
last_3_sizes.pop(-1)
|
if os.path.exists(target_fn):
|
||||||
last_3_sizes.append(os.stat(target_fn).st_size)
|
last_3_sizes.pop(-1)
|
||||||
|
last_3_sizes.append(os.stat(target_fn).st_size)
|
||||||
sleep(3)
|
sleep(3)
|
||||||
|
|
||||||
with open(target_fn, "rb") as f:
|
with open(target_fn, "rb") as f:
|
||||||
|
|
Loading…
Reference in a new issue