diff options
author | Zac Medico <zmedico@gentoo.org> | 2010-12-17 12:12:54 -0800 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2010-12-17 13:16:38 -0800 |
commit | f833d472c54d46872d7418fc052d57f9adeb3332 (patch) | |
tree | 06feb6cd8118b60c68a7f06c69c0d4b3a25e1307 /bin/repoman | |
parent | 65370652e34b7991057719745c87010bb4071994 (diff) | |
download | portage-f833d472c54d46872d7418fc052d57f9adeb3332.tar.gz portage-f833d472c54d46872d7418fc052d57f9adeb3332.tar.bz2 portage-f833d472c54d46872d7418fc052d57f9adeb3332.zip |
repoman: handle ElementTree.ParseError
Diffstat (limited to 'bin/repoman')
-rwxr-xr-x | bin/repoman | 2 |
1 files changed, 1 insertions, 1 deletions
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)) |