Commit 147798f4 authored by Andrew M. Kuchling's avatar Andrew M. Kuchling

Use sys.exc_info()

parent f504b433
......@@ -27,7 +27,7 @@ try:
except SystemExit, n:
sys.exit(n)
except:
t, v, tb = sys.exc_type, sys.exc_value, sys.exc_traceback
t, v, tb = sys.exc_info()
print
import cgi
cgi.print_exception(t, v, tb)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment