aboutsummaryrefslogtreecommitdiffstats
path: root/slack/slack_user.py
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2023-01-19 20:40:32 +0100
committerTrygve Aaberge <trygveaa@gmail.com>2024-02-18 11:32:53 +0100
commitd6b4f505d53e69ecb39d518a89d8d0013e22ad51 (patch)
tree2826b143dcf48d078d678255f6f7b0d715dc6c43 /slack/slack_user.py
parent18f59853a045365b3d6bab26ca5d599b8cbc82db (diff)
downloadwee-slack-d6b4f505d53e69ecb39d518a89d8d0013e22ad51.tar.gz
Print error message on http/api error
Diffstat (limited to 'slack/slack_user.py')
-rw-r--r--slack/slack_user.py6
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):