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:08:40 -05:00
parent 66bafe381a
commit e0136bce2f

View file

@ -147,6 +147,10 @@ class Osu:
scores = await self.api.get_user_best(user.username, limit=limit)
entries = []
if len(entries) == 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]