summaryrefslogtreecommitdiff
path: root/websocket/_core.py
diff options
context:
space:
mode:
Diffstat (limited to 'websocket/_core.py')
-rw-r--r--websocket/_core.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/websocket/_core.py b/websocket/_core.py
index 1d68829..6b51eda 100644
--- a/websocket/_core.py
+++ b/websocket/_core.py
@@ -411,7 +411,7 @@ class WebSocket:
# handle error:
# 'NoneType' object has no attribute 'opcode'
raise WebSocketProtocolException(
- "Not a valid frame %s" % frame)
+ "Not a valid frame {frame}".format(frame=frame))
elif frame.opcode in (ABNF.OPCODE_TEXT, ABNF.OPCODE_BINARY, ABNF.OPCODE_CONT):
self.cont_frame.validate(frame)
self.cont_frame.add(frame)