diff options
author | Trygve Aaberge <trygveaa@gmail.com> | 2023-01-19 20:40:32 +0100 |
---|---|---|
committer | Trygve Aaberge <trygveaa@gmail.com> | 2024-02-18 11:32:53 +0100 |
commit | d6b4f505d53e69ecb39d518a89d8d0013e22ad51 (patch) | |
tree | 2826b143dcf48d078d678255f6f7b0d715dc6c43 /slack/slack_user.py | |
parent | 18f59853a045365b3d6bab26ca5d599b8cbc82db (diff) | |
download | wee-slack-d6b4f505d53e69ecb39d518a89d8d0013e22ad51.tar.gz |
Print error message on http/api error
Diffstat (limited to 'slack/slack_user.py')
-rw-r--r-- | slack/slack_user.py | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/slack/slack_user.py b/slack/slack_user.py index 6b9b056..b895872 100644 --- a/slack/slack_user.py +++ b/slack/slack_user.py @@ -49,9 +49,6 @@ class SlackUser: async def _set_info(self): info_response = await self._api.fetch_user_info(self.id) - if info_response["ok"] is False: - # TODO: Handle error - raise Exception("Failed fetching user info") self._info = info_response["user"] async def ensure_initialized(self): @@ -113,9 +110,6 @@ class SlackBot: async def _set_info(self): info_response = await self._api.fetch_bot_info(self.id) - if info_response["ok"] is False: - # TODO: Handle error - raise Exception("Failed fetching bot info") self._info = info_response["bot"] async def ensure_initialized(self): |