diff options
author | Trygve Aaberge <trygveaa@gmail.com> | 2023-01-14 21:48:12 +0100 |
---|---|---|
committer | Trygve Aaberge <trygveaa@gmail.com> | 2024-02-18 11:32:53 +0100 |
commit | a703cb532e9ed7ac404f48fa292903f392484805 (patch) | |
tree | b06e53f0dc74212227f302b9d060fd710fb99b15 /slack/slack_user.py | |
parent | f790f652d3428404f789822a9bd510ff866d1640 (diff) | |
download | wee-slack-a703cb532e9ed7ac404f48fa292903f392484805.tar.gz |
Raise exceptions on errors
Diffstat (limited to 'slack/slack_user.py')
-rw-r--r-- | slack/slack_user.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/slack/slack_user.py b/slack/slack_user.py index 6cb3897..4386657 100644 --- a/slack/slack_user.py +++ b/slack/slack_user.py @@ -20,5 +20,5 @@ class SlackUser: info = await self.api.fetch_users_info(self) if info["ok"] is False: # TODO: Handle error - return + raise Exception("Failed fetching user info") self.name = info["user"]["name"] |