summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rwxr-xr-xsrc/sbin/bcfg2-repo-validate5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/sbin/bcfg2-repo-validate b/src/sbin/bcfg2-repo-validate
index a59254a80..072029523 100755
--- a/src/sbin/bcfg2-repo-validate
+++ b/src/sbin/bcfg2-repo-validate
@@ -75,7 +75,10 @@ if __name__ == '__main__':
# warn on duplicate Pkgmgr entries with the same priority
pset = set()
for plist in pkg_list:
- xdata = lxml.etree.parse(plist)
+ try:
+ xdata = lxml.etree.parse(plist)
+ except lxml.etree.XMLSyntaxError, e:
+ print("Failed to %s: %s" % (plist, e))
# get priority, type, group
priority = xdata.getroot().get('priority')
ptype = xdata.getroot().get('type')