[svn r37531] Removing try/except to make debugging a little bit easier.
--HG-- branch : trunk
This commit is contained in:
parent
ad127323e3
commit
e921ad8af9
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue