From a0636f13ffcd2f1b38d32e9f289af8008db418fb Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Tue, 24 Aug 2010 08:15:00 -0700 Subject: [PATCH] Bug #334265 - Fix AttributeError triggered by empty herd element in check_metadata_herds(). --- pym/repoman/utilities.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pym/repoman/utilities.py b/pym/repoman/utilities.py index 8e15de083..9dd5cde35 100644 --- a/pym/repoman/utilities.py +++ b/pym/repoman/utilities.py @@ -143,7 +143,7 @@ class UnknownHerdsError(ValueError): def check_metadata_herds(xml_tree, herd_base): herd_nodes = xml_tree.findall('herd') unknown_herds = [name for name in - (e.text.strip() for e in herd_nodes) + (e.text.strip() for e in herd_nodes if e.text is not None) if not herd_base.known_herd(name)] if unknown_herds: -- 2.26.2