diff --git a/resources/lib/websocket/_core.py b/resources/lib/websocket/_core.py index 1ff80f05..7934cc15 100644 --- a/resources/lib/websocket/_core.py +++ b/resources/lib/websocket/_core.py @@ -197,7 +197,10 @@ class WebSocket(object): return None def is_ssl(self): - return isinstance(self.sock, ssl.SSLSocket) + try: + return isinstance(self.sock, ssl.SSLSocket) + except: + return False headers = property(getheaders)