summaryrefslogtreecommitdiffstats
path: root/Demo/sockets/gopher.py
diff options
context:
space:
mode:
Diffstat (limited to 'Demo/sockets/gopher.py')
-rwxr-xr-xDemo/sockets/gopher.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Demo/sockets/gopher.py b/Demo/sockets/gopher.py
index cd76659..34bcdf0 100755
--- a/Demo/sockets/gopher.py
+++ b/Demo/sockets/gopher.py
@@ -191,7 +191,8 @@ def browse_menu(selector, host, port):
try:
browserfunc(i_selector, i_host, i_port)
except (IOError, socket.error):
- print '***', sys.exc_type, ':', sys.exc_value
+ t, v, tb = sys.exc_info()
+ print '***', t, ':', v
else:
print 'Unsupported object type'