From: Zac Medico Date: Fri, 17 Dec 2010 20:12:54 +0000 (-0800) Subject: repoman: handle ElementTree.ParseError X-Git-Tag: v2.2.0_alpha10~14 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=8c0c18edea6d74229dd0e14d22069daaaacd5796;p=portage.git repoman: handle ElementTree.ParseError --- diff --git a/bin/repoman b/bin/repoman index 1e1b1467a..c43493b99 100755 --- a/bin/repoman +++ b/bin/repoman @@ -1391,7 +1391,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))