From d342049ee42dd76a42dfc70be2efc8a71c940bb0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sim=C3=B3=20Albert=20i=20Beltran?= Date: Thu, 14 May 2015 17:16:15 +0200 Subject: [PATCH] wsdump.py writes empty string to console --- bin/wsdump.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/wsdump.py b/bin/wsdump.py index 6a9d1d8..993bad0 100755 --- a/bin/wsdump.py +++ b/bin/wsdump.py @@ -121,7 +121,7 @@ def main(): elif args.verbose: msg = "< %s: %s" % (websocket.ABNF.OPCODE_MAP.get(opcode), data) - if msg: + if msg is not None: console.write(msg) if opcode == websocket.ABNF.OPCODE_CLOSE: