[sulfur] it happens that corrupted repositories cause sulfur packages filter logic to crash. This is not really the right place.

This commit is contained in:
Fabio Erculiani
2010-01-08 09:39:05 +01:00
parent 895b9fd9b6
commit a945625bb7
+6 -1
View File
@@ -17,6 +17,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
from entropy.const import etpUi
from entropy.output import print_generic
class Filtering:
@@ -109,7 +110,11 @@ class KeywordFilter(BaseFilter):
else:
for field in self.fields:
value = getattr(pkg, field)
try:
value = getattr(pkg, field)
except:
if etpUi['debug']:
raise
if not value:
continue
if value.lower().find(crit) != -1: