modifié: superTornado.py

This commit is contained in:
sidya82 2014-02-28 07:35:42 +01:00
parent 18ea1de564
commit be80c006a6

View File

@ -105,7 +105,7 @@ class WSocketHandler(tornado.websocket.WebSocketHandler):
data = f.read()
encoded = base64.b64encode(data)
self.write_message(encoded)
except tornado.websocket.WebSocketClosedError,e:
except Exception, e :
print e
break
time.sleep(2)