From 954ecca7f6a93bcb97875481dc7945f0c9ed2b59 Mon Sep 17 00:00:00 2001 From: Joerg Jaspert Date: Mon, 20 Sep 2010 08:05:51 +0200 Subject: [PATCH] Check if we got the suite back before using it Signed-off-by: Joerg Jaspert --- daklib/queue.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/daklib/queue.py b/daklib/queue.py index 2235f751..3bf0a72a 100755 --- a/daklib/queue.py +++ b/daklib/queue.py @@ -1918,6 +1918,7 @@ distribution.""" for dist in self.pkg.changes["distribution"].keys(): suite = get_suite(dist) + if suite is None: continue announce_list = suite.announce if announce_list == "" or lists_done.has_key(announce_list): continue @@ -2366,7 +2367,7 @@ distribution.""" # Override suite name; used for example with proposed-updates oldsuite = get_suite(suite, session) - if oldsuite.overridesuite: + if (not oldsuite is None) and oldsuite.overridesuite: suite = oldsuite.overridesuite result = get_override(package, suite, component, file_type, session) -- 2.39.2