diff options
author | Trygve Aaberge <trygveaa@gmail.com> | 2023-01-14 14:35:11 +0100 |
---|---|---|
committer | Trygve Aaberge <trygveaa@gmail.com> | 2024-02-18 11:32:53 +0100 |
commit | e28f556f476cbba7a0d70e1f145d8daa728b28be (patch) | |
tree | 787be6c0a635791772f60d43e452164cf89d75ee /slack/slack_conversation.py | |
parent | 7f6d7cd6029bb751732654cfd170432b0034ed03 (diff) | |
download | wee-slack-e28f556f476cbba7a0d70e1f145d8daa728b28be.tar.gz |
Add typing for slack conversations history
Diffstat (limited to 'slack/slack_conversation.py')
-rw-r--r-- | slack/slack_conversation.py | 3 |
1 files changed, 3 insertions, 0 deletions
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"]] |