1
0
Fork 0
mirror of synced 2024-05-20 20:42:27 +12:00

Catch if a user has no top scores

This commit is contained in:
Phxntxm 2017-04-06 17:09:25 -05:00
parent e0136bce2f
commit a45f37324e

View file

@ -147,10 +147,10 @@ class Osu:
scores = await self.api.get_user_best(user.username, limit=limit)
entries = []
if len(entries) == 0:
if len(scores) == 0:
await ctx.send("Sorry, but I can't find any scores for you {}!".format(member.display_name))
return
for i in scores:
m = await self.api.get_beatmaps(beatmap_id=i.beatmap_id)
m = m[0]