diff options
Diffstat (limited to 'slack/slack_user.py')
-rw-r--r-- | slack/slack_user.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/slack/slack_user.py b/slack/slack_user.py index 18c897f..6cb3897 100644 --- a/slack/slack_user.py +++ b/slack/slack_user.py @@ -18,4 +18,7 @@ class SlackUser: async def init(self): info = await self.api.fetch_users_info(self) + if info["ok"] is False: + # TODO: Handle error + return self.name = info["user"]["name"] |