diff options
| author | Simó Albert i Beltran <sim6@probeta.net> | 2015-05-14 17:16:15 +0200 |
|---|---|---|
| committer | Simó Albert i Beltran <sim6@probeta.net> | 2015-05-14 17:16:15 +0200 |
| commit | d342049ee42dd76a42dfc70be2efc8a71c940bb0 (patch) | |
| tree | 0d3b02146031e60365e0cf6529cde40504342fa8 /bin/wsdump.py | |
| parent | 3dacda70950cfbc8fa51242657f084d0c8308d91 (diff) | |
| download | websocket-client-d342049ee42dd76a42dfc70be2efc8a71c940bb0.tar.gz | |
wsdump.py writes empty string to console
Diffstat (limited to 'bin/wsdump.py')
| -rwxr-xr-x | bin/wsdump.py | 2 |
1 files changed, 1 insertions, 1 deletions
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: |
