diff options
author | Guido van Rossum <guido@python.org> | 1997-09-29 23:17:48 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1997-09-29 23:17:48 (GMT) |
commit | c90ad2103eb9aca14b7a910cbcdcd7b570f690ab (patch) | |
tree | 67ae51bbd99774d80402a7f09795ca24ca669463 /Lib/SocketServer.py | |
parent | a3beb63eb73b854d86afe12cd34e45695658e8ad (diff) | |
download | cpython-c90ad2103eb9aca14b7a910cbcdcd7b570f690ab.zip cpython-c90ad2103eb9aca14b7a910cbcdcd7b570f690ab.tar.gz cpython-c90ad2103eb9aca14b7a910cbcdcd7b570f690ab.tar.bz2 |
No longer need to be very careful with saving the exception state
first. Don't store the traceback as a local variable, to avoid
circular references.
Diffstat (limited to 'Lib/SocketServer.py')
-rw-r--r-- | Lib/SocketServer.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/SocketServer.py b/Lib/SocketServer.py index ecd405f..049a4b6 100644 --- a/Lib/SocketServer.py +++ b/Lib/SocketServer.py @@ -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 |