websockets: remove refrenced to undefined attribute in websocket handler
This resolves an issue where an unhandled exception is rasied when a websocket attempts to write to a closed websocket. Signed-off-by: Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
parent
ba4d771d10
commit
8bb7139468
|
@ -309,8 +309,8 @@ class WebSocket(WebSocketHandler):
|
||||||
'method': "notify_status_update",
|
'method': "notify_status_update",
|
||||||
'params': [status]})
|
'params': [status]})
|
||||||
except WebSocketClosedError:
|
except WebSocketClosedError:
|
||||||
self.websockets.pop(self.uid, None)
|
logging.info(
|
||||||
logging.info(f"Websocket Removed: {self.uid}")
|
f"Websocket Closed During Status Update: {self.uid}")
|
||||||
except Exception:
|
except Exception:
|
||||||
logging.exception(
|
logging.exception(
|
||||||
f"Error sending data over websocket: {self.uid}")
|
f"Error sending data over websocket: {self.uid}")
|
||||||
|
|
Loading…
Reference in New Issue