From 95c45a0ab3d66d6e4b8140203eb1e897ef1f727a Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Sun, 13 Jan 2013 14:05:40 +0100 Subject: [PATCH] autodoc: debug module analyzer failure --- sphinx/ext/autodoc.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sphinx/ext/autodoc.py b/sphinx/ext/autodoc.py index 825c63ff8..45dbdcdb4 100644 --- a/sphinx/ext/autodoc.py +++ b/sphinx/ext/autodoc.py @@ -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