[svn r37531] Removing try/except to make debugging a little bit easier.
--HG-- branch : trunk
This commit is contained in:
parent
ad127323e3
commit
e921ad8af9
|
@ -276,20 +276,10 @@ class LSession(AbstractSession):
|
||||||
"function" %(apigen,))
|
"function" %(apigen,))
|
||||||
print >>sys.stderr, 'building documentation'
|
print >>sys.stderr, 'building documentation'
|
||||||
capture = py.io.OutErrCapture()
|
capture = py.io.OutErrCapture()
|
||||||
try:
|
|
||||||
try:
|
try:
|
||||||
pkgdir = self.getpkgdir(self.config.args[0])
|
pkgdir = self.getpkgdir(self.config.args[0])
|
||||||
apigen.build(pkgdir,
|
apigen.build(pkgdir,
|
||||||
DocStorageAccessor(self.docstorage))
|
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")
|
|
||||||
finally:
|
finally:
|
||||||
capture.reset()
|
capture.reset()
|
||||||
|
|
||||||
|
@ -330,3 +320,4 @@ class LSession(AbstractSession):
|
||||||
return box_runner
|
return box_runner
|
||||||
return plain_runner
|
return plain_runner
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue