mirror of
https://github.com/python/cpython.git
synced 2025-07-22 10:45:22 +00:00
The usual (and some new modules).
This commit is contained in:
parent
d57548023f
commit
a11ccccd24
17 changed files with 1011 additions and 285 deletions
|
@ -248,12 +248,11 @@ class TCPServer:
|
|||
The default is to print a traceback and continue.
|
||||
|
||||
"""
|
||||
exc, value, tb = sys.exc_type, sys.exc_value, sys.exc_traceback
|
||||
print '-'*40
|
||||
print 'Exception happened during processing of request from',
|
||||
print client_address
|
||||
import traceback
|
||||
traceback.print_exception(exc, value, tb)
|
||||
traceback.print_exc()
|
||||
print '-'*40
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue