Skip bug-based processing if BugsV is missing

This commit is contained in:
Colin Watson 2012-10-22 13:52:14 +01:00 committed by Iain Lane
parent ba3fec61c3
commit af7da4e764
No known key found for this signature in database
GPG Key ID: E352D5C51C5041D4

View File

@ -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()