set port variable to None so the variable exists

This commit is contained in:
iLLiCiTiT 2020-09-25 14:46:04 +02:00
parent aef9d44f1d
commit 2416d4d33f

View file

@ -31,6 +31,7 @@ class WebSocketServer():
self.client = None
self.handlers = {}
port = None
websocket_url = os.getenv("WEBSOCKET_URL")
if websocket_url:
parsed = urllib.parse.urlparse(websocket_url)