From: Joerg Jaspert Date: Mon, 20 Sep 2010 06:05:51 +0000 (+0200) Subject: Check if we got the suite back before using it X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=954ecca7f6a93bcb97875481dc7945f0c9ed2b59;p=dak Check if we got the suite back before using it Signed-off-by: Joerg Jaspert --- 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)