From 20add22484539be56111f0b3164ba8d9b9b38e91 Mon Sep 17 00:00:00 2001 From: Davide Alberani Date: Wed, 26 Oct 2016 20:09:53 +0200 Subject: [PATCH] execute triggers even with no UUID --- eventman_server.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/eventman_server.py b/eventman_server.py index 28b8955..51f640b 100755 --- a/eventman_server.py +++ b/eventman_server.py @@ -1022,11 +1022,14 @@ class WebSocketEventUpdatesHandler(tornado.websocket.WebSocketHandler): return url def open(self, event_id, *args, **kwargs): - self.uuid = self.get_argument('uuid') + try: + self.uuid = self.get_argument('uuid') + except: + self.uuid = None url = self._clean_url(self.request.uri) logging.debug('WebSocketEventUpdatesHandler.on_open event_id:%s url:%s' % (event_id, url)) _ws_clients.setdefault(url, {}) - if self.uuid not in _ws_clients[url]: + if self.uuid and self.uuid not in _ws_clients[url]: _ws_clients[url][self.uuid] = self logging.debug('WebSocketEventUpdatesHandler.on_open %s clients connected' % len(_ws_clients[url]))