Skip to content

Commit

Permalink
SSLWantReadError only exists in python 2.7.9+
Browse files Browse the repository at this point in the history
  • Loading branch information
lins05 committed May 9, 2016
1 parent 15fdeea commit f36c406
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions slackbot/slackclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import json
import logging
import time
from ssl import SSLWantReadError
from ssl import SSLError

import slacker
from six import iteritems
Expand Down Expand Up @@ -87,7 +87,7 @@ def websocket_safe_read(self):
logger.warning('websocket exception: %s', e)
self.reconnect()
except Exception as e:
if isinstance(e, SSLWantReadError) and e.errno == 2:
if isinstance(e, SSLError) and e.errno == 2:
pass
else:
logger.warning('Exception in websocket_safe_read: %s', e)
Expand Down

0 comments on commit f36c406

Please sign in to comment.