aboutsummaryrefslogtreecommitdiffstats
path: root/slack/slack_conversation.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_conversation.py
parent18f59853a045365b3d6bab26ca5d599b8cbc82db (diff)
downloadwee-slack-d6b4f505d53e69ecb39d518a89d8d0013e22ad51.tar.gz
Print error message on http/api error
Diffstat (limited to 'slack/slack_conversation.py')
-rw-r--r--slack/slack_conversation.py6
1 files changed, 0 insertions, 6 deletions
diff --git a/slack/slack_conversation.py b/slack/slack_conversation.py
index 8123df8..8fb1c0e 100644
--- a/slack/slack_conversation.py
+++ b/slack/slack_conversation.py
@@ -54,9 +54,6 @@ class SlackConversation:
async def init(self):
with self.loading():
info = await self._api.fetch_conversations_info(self)
- if info["ok"] is False:
- # TODO: Handle error
- raise Exception("Failed fetching conversation info")
info_channel = info["channel"]
if info_channel["is_im"] is True:
@@ -84,9 +81,6 @@ class SlackConversation:
self.history_pending = True
history = await self._api.fetch_conversations_history(self)
- if history["ok"] is False:
- # TODO: Handle error
- raise Exception("Failed fetching conversation history")
start = time.time()
messages = [SlackMessage(self, message) for message in history["messages"]]