mirror of
https://github.com/python/cpython.git
synced 2025-07-19 09:15:34 +00:00
Remove sys.exc_type, sys.exc_value, sys.exc_traceback
This commit is contained in:
parent
fc85c92a85
commit
ac3625fcb9
16 changed files with 36 additions and 58 deletions
|
@ -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'
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue