From af7da4e764e7a95506f99375959e3ffed446b248 Mon Sep 17 00:00:00 2001 From: Colin Watson Date: Mon, 22 Oct 2012 13:52:14 +0100 Subject: [PATCH] Skip bug-based processing if BugsV is missing --- britney2/policies/policy.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/britney2/policies/policy.py b/britney2/policies/policy.py index 5027a91..8ed4917 100644 --- a/britney2/policies/policy.py +++ b/britney2/policies/policy.py @@ -655,6 +655,11 @@ class RCBugPolicy(BasePolicy): name and the value is the list of open RC bugs for it. """ bugs = {} + + if not os.path.exists(filename): + self.logger.info("%s missing; skipping bug-based processing" % filename) + return bugs + self.logger.info("Loading RC bugs data from %s", filename) for line in open(filename, encoding='ascii'): ln = line.split()