Skip to content

Commit

Permalink
make notifications a bit more resilient to missing methods
Browse files Browse the repository at this point in the history
  • Loading branch information
Dustin J. Mitchell committed Feb 14, 2010
1 parent d90ec46 commit 9c2bf24
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions buildbot/status/builder.py
Expand Up @@ -2469,11 +2469,13 @@ def builderRemoved(self, name):

def slaveConnected(self, name):
for t in self.watchers:
t.slaveConnected(name)
if hasattr(t, 'slaveConnected'):
t.slaveConnected(name)

def slaveDisconnected(self, name):
for t in self.watchers:
t.slaveDisconnected(name)
if hasattr(t, 'slaveDisconnected'):
t.slaveDisconnected(name)

def buildsetSubmitted(self, bss):
self.activeBuildSets.append(bss)
Expand Down

0 comments on commit 9c2bf24

Please sign in to comment.