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:
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)
|
||||
except KeyError:
|
||||
continue
|
||||
except Exception:
|
||||
print("[Osu!] Something is wrong...")
|
||||
continue
|
||||
else:
|
||||
if r["pp_raw"] is not None:
|
||||
pp = float(r["pp_raw"])
|
||||
|
|
Loading…
Reference in a new issue