summaryrefslogtreecommitdiffhomepage
path: root/demos/demo_simple.py
diff options
context:
space:
mode:
authorScott Maxwell <scott@codecobblers.com>2013-11-19 08:06:35 -0800
committerScott Maxwell <scott@codecobblers.com>2013-11-19 08:06:35 -0800
commit25dd096da065b1bc2f35c1a62d8a7055b022818b (patch)
tree94e87015ebcb83660452c79093e1ac407e360306 /demos/demo_simple.py
parent3ce336c88b7bfbfad03fab17bff8cb3c3a77176c (diff)
Change all exceptions to modern format (not Py2.5 compatible)
Diffstat (limited to 'demos/demo_simple.py')
-rwxr-xr-xdemos/demo_simple.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/demos/demo_simple.py b/demos/demo_simple.py
index fb71145d..ae631e43 100755
--- a/demos/demo_simple.py
+++ b/demos/demo_simple.py
@@ -77,8 +77,7 @@ try:
chan.close()
client.close()
-except Exception:
- e = sys.exc_info()[1]
+except Exception as e:
print('*** Caught exception: %s: %s' % (e.__class__, e))
traceback.print_exc()
try: