From 6cd067514181ac86b521d20f7a0b5494be704dcf Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Thu, 20 Apr 2017 22:45:02 +0200 Subject: [PATCH] prevent osu crashes --- main.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main.py b/main.py index 69788041..a0ea605e 100644 --- a/main.py +++ b/main.py @@ -304,6 +304,9 @@ async def osu_pp(timeout): r = await osu.get_user(db[player]["osu"]["id"], mode) except KeyError: continue + except Exception: + print("[Osu!] Something is wrong...") + continue else: if r["pp_raw"] is not None: pp = float(r["pp_raw"])