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: