Commits

Jon Waltman committed 4ce8f7b

autodoc: Don't rely on reporter.get_source_and_line existing for debug messages.

  • Participants
  • Parent commits 200f0e3

Comments (0)

Files changed (1)

sphinx/ext/autodoc.py

         self.warnings = []
         self.result = ViewList()
 
-        source, lineno = self.reporter.get_source_and_line(self.lineno)
+        try:
+            source, lineno = self.reporter.get_source_and_line(self.lineno)
+        except AttributeError:
+            source = lineno = None
         self.env.app.debug('%s:%s: <input>\n%s',
                            source, lineno, self.block_text)