Websocket Fix AttributeError: 'NoneType' object has no attribute is_ssl
This commit is contained in:
parent
1bd1da9f5a
commit
295f403c64
1 changed files with 4 additions and 1 deletions
|
@ -197,7 +197,10 @@ class WebSocket(object):
|
|||
return None
|
||||
|
||||
def is_ssl(self):
|
||||
try:
|
||||
return isinstance(self.sock, ssl.SSLSocket)
|
||||
except:
|
||||
return False
|
||||
|
||||
headers = property(getheaders)
|
||||
|
||||
|
|
Loading…
Reference in a new issue