aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/dos-8x3/socketse.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/dos-8x3/socketse.py')
-rwxr-xr-xLib/dos-8x3/socketse.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/dos-8x3/socketse.py b/Lib/dos-8x3/socketse.py
index ecd405fe096..049a4b6cc77 100755
--- a/Lib/dos-8x3/socketse.py
+++ b/Lib/dos-8x3/socketse.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