From 58bdae9c2eb5b88fd42d18d6a707025031a9e6e7 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sat, 13 Aug 2016 15:57:38 +0200 Subject: [PATCH] Rate limits handling part3 --- main.py | 1 + 1 file changed, 1 insertion(+) diff --git a/main.py b/main.py index e1409587..7f5a45e4 100644 --- a/main.py +++ b/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.")