Skip to content

Commit

Permalink
Merge branch 'master' into buildbot-0.8.0
Browse files Browse the repository at this point in the history
* master:
  check that build_status exists before looking at .number (fixes buildbot#855)
  • Loading branch information
Dustin J. Mitchell committed May 24, 2010
2 parents e836fb4 + 0947412 commit 150e4e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions buildbot/process/builder.py
Expand Up @@ -654,10 +654,10 @@ def reclaimAllBuilds(self):

def getBuild(self, number):
for b in self.building:
if b.build_status.number == number:
if b.build_status and b.build_status.number == number:
return b
for b in self.old_building.keys():
if b.build_status.number == number:
if b.build_status and b.build_status.number == number:
return b
return None

Expand Down

0 comments on commit 150e4e8

Please sign in to comment.