def attached(self, bot): if self.substantiation_deferred is None: msg = 'Slave %s received connection while not trying to ' \ 'substantiate. Ignoring.' % (self.slavename,) log.msg(msg) return defer.succeed(None) return AbstractLatentBuildSlave.attached(self, bot)