Skip to content

Commit ca0f62d

Browse files
author
Chris O'Dell
committed
Catch exception attempting to create an archived channel
1 parent 21cbde2 commit ca0f62d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

response/slack/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,8 @@ def get_usergroup_users(self, group_id):
143143
return None
144144

145145
def create_channel(self, name):
146-
response = self.api_call("channels.create", name=name)
147146
try:
147+
response = self.api_call("channels.create", name=name)
148148
return response["channel"]["id"]
149149
except KeyError:
150150
raise SlackError(

0 commit comments

Comments
 (0)