try catch for json loads sometimes osu api response is weird
@@ -180,7 +180,10 @@ class Scoreboard(FrameObject):
r = requests.post("https://osu.ppy.sh/api/get_scores", data=data)
+ try:
data = json.loads(r.text)
+ except json.decoder.JSONDecodeError:
+ return
if "error" in data:
print("\n\n {} \n\n".format(data["error"]))
