From 02d970a4bb1c368c03c92e465d4618b9c4eea988 Mon Sep 17 00:00:00 2001 From: coolyuyuyu Date: Thu, 15 Jan 2015 20:03:54 +0800 Subject: [PATCH] Update _abnf.py bug fix. Root cause: append int to string. --- websocket/_abnf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/websocket/_abnf.py b/websocket/_abnf.py index b286c43..231277b 100644 --- a/websocket/_abnf.py +++ b/websocket/_abnf.py @@ -108,7 +108,7 @@ class ABNF(object): raise WebSocketProtocolException("rsv is not implemented, yet") if self.opcode not in ABNF.OPCODES: - raise WebSocketProtocolException("Invalid opcode " + self.opcode) + raise WebSocketProtocolException("Invalid opcode " + str(self.opcode)) if self.opcode == ABNF.OPCODE_PING and not self.fin: raise WebSocketProtocolException("Invalid ping frame.")