1
Fork 0
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:
Steffo 2016-08-13 15:57:38 +02:00
parent 340227db5f
commit 58bdae9c2e

View file

@ -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.")