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:
parent
8925b3cb19
commit
6cd0675141
1 changed files with 3 additions and 0 deletions
3
main.py
3
main.py
|
@ -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"])
|
||||||
|
|
Loading…
Reference in a new issue