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 Martin Pitt
parent 475f8366b1
commit b549788210

View File

@ -494,6 +494,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()