Skip bug-based processing if BugsV is missing

email-direct-upload-sponsor
Colin Watson 12 years ago committed by Martin Pitt
parent 538d5c61ff
commit c26dfad9c2

@ -531,6 +531,10 @@ class RCBugPolicy(BasePolicy):
name and the value is the list of open RC bugs for it. name and the value is the list of open RC bugs for it.
""" """
bugs = {} 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) self.log("Loading RC bugs data from %s" % filename)
for line in open(filename, encoding='ascii'): for line in open(filename, encoding='ascii'):
l = line.split() l = line.split()

Loading…
Cancel
Save