summaryrefslogtreecommitdiffstats
path: root/doc/exts
diff options
context:
space:
mode:
Diffstat (limited to 'doc/exts')
-rw-r--r--doc/exts/xmlschema.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/exts/xmlschema.py b/doc/exts/xmlschema.py
index e38436e7c..c26aed81e 100644
--- a/doc/exts/xmlschema.py
+++ b/doc/exts/xmlschema.py
@@ -132,6 +132,7 @@ class _XMLDirective(Directive):
else:
reporter.error("No XML %s %s found" %
(" or ".join(self.types), name))
+ return []
documentor = XMLDocumentor(entity, env, self.state, name=name,
ns_uri=ns_uri,
include=self.process_include(),
@@ -315,6 +316,7 @@ class XMLDocumentor(object):
return rv
else:
self.reporter.error("Unknown element type %s" % fqtype)
+ return []
else:
rv = []
typespec = self.entity.xpath("xs:complexType", namespaces=NSMAP)[0]