summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris St. Pierre <chris.a.st.pierre@gmail.com>2013-05-22 15:09:55 -0400
committerChris St. Pierre <chris.a.st.pierre@gmail.com>2013-05-22 15:09:55 -0400
commitfedd8da882ace1fdfc00f63043acda619e77dfa4 (patch)
tree95ed29f95270482c6a60c42172c622472ad61ba1
parent91fa382e6bd1b404d7f782ce20255dc2273daa13 (diff)
downloadbcfg2-fedd8da882ace1fdfc00f63043acda619e77dfa4.tar.gz
bcfg2-fedd8da882ace1fdfc00f63043acda619e77dfa4.tar.bz2
bcfg2-fedd8da882ace1fdfc00f63043acda619e77dfa4.zip
doc: return correctly from xmlschema errors
-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]