]> err.no Git - dak/commitdiff
Check brit_file value, it can be None
authorLuca Falavigna <dktrkranz@debian.org>
Sun, 3 Oct 2010 12:47:57 +0000 (12:47 +0000)
committerLuca Falavigna <dktrkranz@debian.org>
Sun, 3 Oct 2010 12:47:57 +0000 (12:47 +0000)
Signed-off-by: Luca Falavigna <dktrkranz@debian.org>
dak/control_suite.py

index be31e001c5db1bf4f59831d6c8558d0bcd8a5f03..fcd4ca39562cf0c96e61f2364dc3e412a1b01ed0 100755 (executable)
@@ -104,6 +104,9 @@ def britney_changelog(packages, suite, session):
                             {'suiteid': suite.suite_id})
         brit_file = q.fetchone()[0]
     except:
+        brit_file = None
+
+    if not brit_file:
         return
 
     q = session.execute("""SELECT s.source, s.version, sa.id