diff options
author | Trygve Aaberge <trygveaa@gmail.com> | 2023-01-14 12:38:25 +0100 |
---|---|---|
committer | Trygve Aaberge <trygveaa@gmail.com> | 2024-02-18 11:32:53 +0100 |
commit | 2e64309e8094fe7409a0d97d32dfe8d35fed689c (patch) | |
tree | 3a5005daa653ff907b6c72b7a43666082f4bd86c /slack/slack_workspace.py | |
parent | 570f855c7aa29168e2c883066e4b878068646caf (diff) | |
download | wee-slack-2e64309e8094fe7409a0d97d32dfe8d35fed689c.tar.gz |
Add typings for users.conversations
Diffstat (limited to 'slack/slack_workspace.py')
-rw-r--r-- | slack/slack_workspace.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/slack/slack_workspace.py b/slack/slack_workspace.py index 72ffc7d..e659eba 100644 --- a/slack/slack_workspace.py +++ b/slack/slack_workspace.py @@ -42,6 +42,10 @@ class SlackWorkspace: user_channels_response = await self.api.fetch_users_conversations( "public_channel" ) + if user_channels_response["ok"] is False: + # TODO: Handle error + return + user_channels = user_channels_response["channels"] for channel in user_channels: |