autodoc: debug module analyzer failure

This commit is contained in:
Georg Brandl 2013-01-13 14:05:40 +01:00
parent 9b4efc9ba3
commit 95c45a0ab3

View File

@ -717,7 +717,8 @@ class Documenter(object):
# parse right now, to get PycodeErrors on parsing (results will
# be cached anyway)
self.analyzer.find_attr_docs()
except PycodeError:
except PycodeError, err:
self.env.app.debug('[autodoc] module analyzer failed: %s', err)
# no source file -- e.g. for builtin and C modules
self.analyzer = None
# at least add the module.__file__ as a dependency