Use sys.exc_info()

This commit is contained in:
Andrew M. Kuchling 2006-07-26 18:03:12 +00:00
parent 10c2b55057
commit 44c668d15e
1 changed files with 1 additions and 1 deletions

View File

@ -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)