Restored TypeError exception handling to _send_heartbeat()
This commit is contained in:
parent
afa0dc5635
commit
dd1ab53dc5
1 changed files with 4 additions and 1 deletions
|
|
@ -127,7 +127,10 @@ class SocketIO(object):
|
||||||
return channel
|
return channel
|
||||||
|
|
||||||
def _send_heartbeat(self):
|
def _send_heartbeat(self):
|
||||||
self._send_packet(2)
|
try:
|
||||||
|
self._send_packet(2)
|
||||||
|
except TypeError:
|
||||||
|
pass
|
||||||
|
|
||||||
def message(self, messageData, callback=None, channelName=''):
|
def message(self, messageData, callback=None, channelName=''):
|
||||||
if isinstance(messageData, basestring):
|
if isinstance(messageData, basestring):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue