From: Joerg Jaspert Date: Wed, 28 Oct 2009 09:36:37 +0000 (+0100) Subject: Dont do work without a tagfile X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=e0d466467166c8be95f473ab79f6b3958387d06a;p=dak.git Dont do work without a tagfile Signed-off-by: Joerg Jaspert --- diff --git a/daklib/queue.py b/daklib/queue.py index c30aeb05..479bb3b9 100755 --- a/daklib/queue.py +++ b/daklib/queue.py @@ -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()