mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-23 19:44:20 +00:00
Rate limits handling part3
This commit is contained in:
parent
340227db5f
commit
58bdae9c2e
1 changed files with 1 additions and 0 deletions
1
main.py
1
main.py
|
@ -94,6 +94,7 @@ async def league_rank_change(timeout):
|
|||
f = open("db.json", "w")
|
||||
json.dump(db, f)
|
||||
f.close()
|
||||
finally:
|
||||
# Prevent getting ratelimited by Riot
|
||||
await asyncio.sleep(1)
|
||||
print("[League] Check completed.")
|
||||
|
|
Loading…
Reference in a new issue