From e28f556f476cbba7a0d70e1f145d8daa728b28be Mon Sep 17 00:00:00 2001 From: Trygve Aaberge Date: Sat, 14 Jan 2023 14:35:11 +0100 Subject: Add typing for slack conversations history --- slack/slack_conversation.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'slack/slack_conversation.py') diff --git a/slack/slack_conversation.py b/slack/slack_conversation.py index 21b953b..49b7a2a 100644 --- a/slack/slack_conversation.py +++ b/slack/slack_conversation.py @@ -84,6 +84,9 @@ class SlackConversation: self.history_pending = True history = await self.api.fetch_conversations_history(self) + if history["ok"] is False: + # TODO: Handle error + return start = time.time() messages = [SlackMessage(self, message) for message in history["messages"]] -- cgit