diff options
author | INADA Naoki <songofacandy@gmail.com> | 2013-05-01 01:17:08 +0900 |
---|---|---|
committer | INADA Naoki <songofacandy@gmail.com> | 2013-05-01 01:17:08 +0900 |
commit | a3429b70a587ec54e6ce920142b5a33b01a6012a (patch) | |
tree | 30f1fe3a0022520531ace7a2af4ca198eeb61195 | |
parent | e79ccb2d11df4bbea460843f784619be90060ac2 (diff) | |
download | websocket-client-a3429b70a587ec54e6ce920142b5a33b01a6012a.tar.gz |
-v trace while connecting.
-rwxr-xr-x | bin/wsdump.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/wsdump.py b/bin/wsdump.py index 85c455d..0c9e1ae 100755 --- a/bin/wsdump.py +++ b/bin/wsdump.py @@ -57,9 +57,9 @@ class InteractiveConsole(code.InteractiveConsole): def main(): args = parse_args() console = InteractiveConsole() - ws = websocket.create_connection(args.url) if args.verbose > 1: websocket.enableTrace(True) + ws = websocket.create_connection(args.url) print("Press Ctrl+C to quit") def recv(): @@ -106,5 +106,5 @@ def main(): if __name__ == "__main__": try: main() - except Exception, e: + except Exception as e: print(e) |