[dak/master] Check if we got the suite back before using it
Signed-off-by: Joerg Jaspert <joerg@debian.org>
---
daklib/queue.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/daklib/queue.py b/daklib/queue.py
index 2235f75..3bf0a72 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)
--
1.5.6.5
Reply to: