Added check of world.testing so nasty exceptions aren't printed during testing.

This commit is contained in:
Jeremy Fincher 2003-04-08 07:21:38 +00:00
parent 6f7a33ce5c
commit 822a12535b

View File

@ -40,6 +40,7 @@ import traceback
import ansi
import conf
import world
###
# CONFIGURATION
@ -130,6 +131,8 @@ def unrecoverableError(msg):
exit(-1)
def recoverableException():
if world.testing:
return
(E, e, tb) = sys.exc_info()
for exn in deadlyExceptions:
if issubclass(e.__class__, exn):