wsdump.py writes empty string to console

This commit is contained in:
Simó Albert i Beltran
2015-05-14 17:16:15 +02:00
parent 3dacda7095
commit d342049ee4

View File

@@ -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: