Skip to content

Commit

Permalink
Fix Build Error (slackapi#245)
Browse files Browse the repository at this point in the history
* fix build errors

* change to except Exception
  • Loading branch information
Christo Goosen authored and committed-name committed Nov 20, 2017
1 parent bfe19f8 commit 9dc532f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion slackclient/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def rtm_connect(self, with_team_state=True, **kwargs):
try:
self.server.rtm_connect(use_rtm_start=with_team_state, **kwargs)
return True
except:
except Exception:
traceback.print_exc()
return False

Expand Down
2 changes: 1 addition & 1 deletion slackclient/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def send_to_websocket(self, data):
try:
data = json.dumps(data)
self.websocket.send(data)
except:
except Exception:
self.rtm_connect(reconnect=True)

def rtm_send_message(self, channel, message, thread=None, reply_broadcast=None):
Expand Down

0 comments on commit 9dc532f

Please sign in to comment.