]> git.decadent.org.uk Git - dak.git/blobdiff - daklib/queue.py
Dont do work without a tagfile
[dak.git] / 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()