From 848a4645d89bf5f18914519ab114afcdf6b40b1c 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 --- policies/policy.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/policies/policy.py b/policies/policy.py index 30f014f..57c151b 100644 --- a/policies/policy.py +++ b/policies/policy.py @@ -528,6 +528,10 @@ class RCBugPolicy(BasePolicy): name and the value is the list of open RC bugs for it. """ bugs = {} + if not os.path.exists(filename): + self.log("%s missing; skipping bug-based processing" % filename) + return bugs + self.log("Loading RC bugs data from %s" % filename) for line in open(filename, encoding='ascii'): l = line.split()