Use sys.exc_info()
This commit is contained in:
parent
10c2b55057
commit
44c668d15e
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue