From fc392e471f437418ed2cb90a75fe077eabfb814b Mon Sep 17 00:00:00 2001 From: Fabio Erculiani Date: Wed, 20 Jan 2010 21:56:01 +0100 Subject: [PATCH] [sulfur] do not raise ValueError but just return empty list when get_installed_pkg_objs_for_selected() is not allowed --- sulfur/src/sulfur/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sulfur/src/sulfur/views.py b/sulfur/src/sulfur/views.py index 3f2441ce6..212c47374 100644 --- a/sulfur/src/sulfur/views.py +++ b/sulfur/src/sulfur/views.py @@ -1686,8 +1686,8 @@ class EntropyPackageView: if m_tup[0] != -1: ep, new = self.etpbase.get_package_item(m_tup) if new: - raise ValueError("trying to load new package objects when" \ - " shouldn't be allowed") + # trying to load new package objects when shouldn't be allowed + return [] selected_objs.append(ep) return selected_objs