[dak/master] Dont do work without a tagfile
Signed-off-by: Joerg Jaspert <joerg@debian.org>
---
daklib/queue.py | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/daklib/queue.py b/daklib/queue.py
index c30aeb0..479bb3b 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()
--
1.6.3.3
Reply to: