diff --git a/daphne/http_protocol.py b/daphne/http_protocol.py index d998ac1..5b6158f 100755 --- a/daphne/http_protocol.py +++ b/daphne/http_protocol.py @@ -314,7 +314,7 @@ class HTTPFactory(http.HTTPFactory): "Got invalid WebSocket reply message on %s - " "contains unknown keys %s (looking for either {'accept', 'text', 'bytes', 'close'})" % ( channel, - unknown_message_keys, + unknown_keys, ) ) if message.get("accept", None) and protocol.state == protocol.STATE_CONNECTING: