summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorINADA Naoki <songofacandy@gmail.com>2013-05-01 01:17:08 +0900
committerINADA Naoki <songofacandy@gmail.com>2013-05-01 01:17:08 +0900
commita3429b70a587ec54e6ce920142b5a33b01a6012a (patch)
tree30f1fe3a0022520531ace7a2af4ca198eeb61195 /bin
parente79ccb2d11df4bbea460843f784619be90060ac2 (diff)
downloadwebsocket-client-a3429b70a587ec54e6ce920142b5a33b01a6012a.tar.gz
-v trace while connecting.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/wsdump.py4
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)