diff options
Diffstat (limited to 'src/lib/Server/Lint/Validate.py')
-rw-r--r-- | src/lib/Server/Lint/Validate.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/lib/Server/Lint/Validate.py b/src/lib/Server/Lint/Validate.py index 19fd61d25..952a65365 100644 --- a/src/lib/Server/Lint/Validate.py +++ b/src/lib/Server/Lint/Validate.py @@ -164,7 +164,13 @@ class Validate(Bcfg2.Server.Lint.ServerlessPlugin): # listed in self.files, though, there's really nothing we can # do to guess what a file in Metadata is if rv: - rv.extend(self.follow_xinclude(rv[0])) + try: + rv.extend(self.follow_xinclude(rv[0])) + except lxml.etree.XMLSyntaxError: + e = sys.exc_info()[1] + self.LintError("xml-failed-to-parse", + "%s fails to parse:\n%s" % (rv[0], e)) + return rv |