added exception reporting to global_tests in engine.get_status()

This commit is contained in:
Pablo Hoffman 2009-06-22 18:40:17 -03:00
parent b037ef6a27
commit ab0950b67e
1 changed files with 4 additions and 1 deletions

View File

@ -437,7 +437,10 @@ class ExecutionEngine(object):
]
for test in global_tests:
s += "%-47s : %s\n" % (test, eval(test))
try:
s += "%-47s : %s\n" % (test, eval(test))
except Exception, e:
s += "%-47s : %s (exception)\n" % (test, type(e).__name__)
s += "\n"
for domain in self.downloader.sites:
s += "%s\n" % domain