1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-27 13:34:28 +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) r = await osu.get_user(db[player]["osu"]["id"], mode)
except KeyError: except KeyError:
continue continue
except Exception:
print("[Osu!] Something is wrong...")
continue
else: else:
if r["pp_raw"] is not None: if r["pp_raw"] is not None:
pp = float(r["pp_raw"]) pp = float(r["pp_raw"])