Skip to content

Commit

Permalink
Fix slackroom purpose (#97)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcfrt authored Jun 14, 2023
1 parent 59bb462 commit f3ee549
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
### Changed
- refactored user cache to allow organisation level users/bots #95 (@gdelaney)
### Fixed
- setting SlackRoom purpose. (@jcfrt)

## [0.2.1] 2022-10-02
### Added
Expand Down
6 changes: 3 additions & 3 deletions src/slackv3/room.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def join(self, username=None, password=None):
join_failure = False
except SlackApiError as e:
log.error(f"Unable to join '{self.name}'. Slack API Error {str(e)}")
except BotUserAccessError as e:
except BotUserAccessError:
log.error(f"OAuthv1 bot token not allowed to join channels. '{self.name}'.")

if join_failure:
Expand Down Expand Up @@ -221,8 +221,8 @@ def purpose(self):

@purpose.setter
def purpose(self, purpose):
log.info(f"Setting purpose of {self} ({self.id}) to {topic}.")
res = self._webclient.conversations_setPurpose(channel=self.id, purpose=purpse)
log.info(f"Setting purpose of {self} ({self.id}) to {purpose}.")
res = self._webclient.conversations_setPurpose(channel=self.id, purpose=purpose)
if res["ok"] is True:
self._cache["purpose"] = purpose
else:
Expand Down

0 comments on commit f3ee549

Please sign in to comment.