From f833d472c54d46872d7418fc052d57f9adeb3332 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Fri, 17 Dec 2010 12:12:54 -0800 Subject: [PATCH] repoman: handle ElementTree.ParseError --- bin/repoman | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/repoman b/bin/repoman index 95a8514c5..9265c0e41 100755 --- a/bin/repoman +++ b/bin/repoman @@ -1388,7 +1388,7 @@ for x in scanlist: os.path.join(checkdir, "metadata.xml"), parser=xml.etree.ElementTree.XMLParser( target=_MetadataTreeBuilder())) - except (ExpatError, EnvironmentError) as e: + except (xml.etree.ElementTree.ParseError, ExpatError, EnvironmentError) as e: metadata_bad = True stats["metadata.bad"] += 1 fails["metadata.bad"].append("%s/metadata.xml: %s" % (x, e)) -- 2.26.2