mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
Merge pull request #564 from pypeclub/bugfix/missing_port_variable
set port variable to None so the variable exists
This commit is contained in:
commit
fd1e6dd3c3
1 changed files with 2 additions and 1 deletions
|
|
@ -31,12 +31,13 @@ class WebSocketServer():
|
|||
self.client = None
|
||||
self.handlers = {}
|
||||
|
||||
port = None
|
||||
websocket_url = os.getenv("WEBSOCKET_URL")
|
||||
if websocket_url:
|
||||
parsed = urllib.parse.urlparse(websocket_url)
|
||||
port = parsed.port
|
||||
if not port:
|
||||
port = 8099 # fallback
|
||||
port = 8098 # fallback
|
||||
|
||||
self.app = web.Application()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue