Too new python

This commit is contained in:
Ruben van de Ven 2021-10-17 10:25:42 +02:00
parent 58df48cd91
commit 7cc0ee36fa

View file

@ -248,7 +248,7 @@ class ConfigWebSocketHandler(tornado.websocket.WebSocketHandler):
parsed_origin = urlparse(origin) parsed_origin = urlparse(origin)
# parsed_origin.netloc.lower() gives localhost:3333 # parsed_origin.netloc.lower() gives localhost:3333
valid = any([parsed_origin.hostname.endswith(origin) for origin in self.CORS_ORIGINS]) valid = any([parsed_origin.hostname.endswith(origin) for origin in self.CORS_ORIGINS])
logger.info(f"Connection from {origin} is valid? {valid=}") logger.info(f"Connection from {origin} is valid? valid: {valid}")
return valid return valid
# the client connected # the client connected