1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-23 19:44:20 +00:00

prevent osu crashes

This commit is contained in:
Steffo 2017-04-20 22:45:02 +02:00
parent 8925b3cb19
commit 6cd0675141

View file

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