[svn r37531] Removing try/except to make debugging a little bit easier.

--HG--
branch : trunk
This commit is contained in:
guido 2007-01-29 13:53:52 +01:00
parent ad127323e3
commit e921ad8af9
1 changed files with 4 additions and 13 deletions

View File

@ -277,19 +277,9 @@ class LSession(AbstractSession):
print >>sys.stderr, 'building documentation'
capture = py.io.OutErrCapture()
try:
try:
pkgdir = self.getpkgdir(self.config.args[0])
apigen.build(pkgdir,
DocStorageAccessor(self.docstorage))
except AttributeError:
import traceback
exc, e, tb = sys.exc_info()
print '%s - %s' % (exc, e)
print ''.join(traceback.format_tb(tb))
del tb
print '-' * 79
raise NotImplementedError("Provided script does not seem "
"to contain build function")
pkgdir = self.getpkgdir(self.config.args[0])
apigen.build(pkgdir,
DocStorageAccessor(self.docstorage))
finally:
capture.reset()
@ -330,3 +320,4 @@ class LSession(AbstractSession):
return box_runner
return plain_runner