]> git.decadent.org.uk Git - dak.git/commitdiff
Dont do work without a tagfile
authorJoerg Jaspert <joerg@debian.org>
Wed, 28 Oct 2009 09:36:37 +0000 (10:36 +0100)
committerJoerg Jaspert <joerg@debian.org>
Wed, 28 Oct 2009 09:36:37 +0000 (10:36 +0100)
Signed-off-by: Joerg Jaspert <joerg@debian.org>
daklib/queue.py

index c30aeb0566853c6de967416fe8049a1d9bd71936..479bb3b9279b42b1a4a80bc2bf035e793dd90f75 100755 (executable)
@@ -1208,7 +1208,10 @@ class Upload(object):
             return
 
         cnf = Config()
-        tagfile = cnf["Dinstall::LintianTags"]
+        tagfile = cnf.get("Dinstall::LintianTags")
+        if tagfile is None:
+            # We don't have a tagfile, so just don't do anything.
+            return
         # Parse the yaml file
         sourcefile = file(tagfile, 'r')
         sourcecontent = sourcefile.read()