Commits

Ernesto Menéndez committed 3df9cea

agregue un try a una excepcion

Comments (0)

Files changed (1)

nxweb/apps/wmanws/__init__.py

             "tasks_done":     worker_manager.get_tasks_done_list_monitor()}
     data = json.dumps(data)
     for ws in _monitor_websockets:
-        ws.send(data)
+        try:
+            ws.send(data)
+        except:
+            print debut("Warning: error sending data on web socket to monitor")
 
 def accept_ws_connection(environ, start_response):
     """Handles the websocket connection request"""