def keySave(self): config.plugins.growlee.save() if self["config"].isChanged(): def doConnect(*args, **kwargs): growleeConnection.listen() d = growleeConnection.stop() if d is not None: d.addCallback(doConnect).addErrback(emergencyDisable) else: maybeConnect() self.saveAll() self.close()
def keySave(self): config.plugins.growlee.save() if self["config"].isChanged(): def doConnect(*args, **kwargs): growleeConnection.listen() d = growleeConnection.stop() if d is not None: d.addCallback(doConnect).addErrback(emergencyDisable) else: maybeConnect() self.saveAll() self.close()