Skip to content

Commit

Permalink
Test against NoneType before calling results function
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredmorrow committed Jan 6, 2012
1 parent 745c1e5 commit 9a95fac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion master/buildbot/status/mail.py
Expand Up @@ -435,7 +435,7 @@ def _gotBuilds(self, res, builddicts, buildset, builders):
for (builddictlist, builder) in zip(builddicts, builders):
for builddict in builddictlist:
build = builder.getBuild(builddict['number'])
if self.isMailNeeded(build, build.results):
if build is not None and self.isMailNeeded(build, build.results):
builds.append(build)

self.buildMessage("Buildset Complete: " + buildset['reason'], builds,
Expand Down

0 comments on commit 9a95fac

Please sign in to comment.