1
0
Fork 0
mirror of synced 2024-05-06 21:52:30 +12:00

Woops, forgot to put that in the try

This commit is contained in:
Phxntxm 2019-11-19 09:52:11 -06:00
parent d37ab8d91c
commit 8bff707037

View file

@ -41,8 +41,8 @@ class Osu(commands.Cog):
async def get_user_from_api(self, username):
"""A simple helper function to parse the list given and handle failures"""
user = await self.api.get_user(username)
try:
user = await self.api.get_user(username)
return user[0]
except IndexError:
return None