

def startService(self):
    if (self.graphite_host and service.graphite_port and self.protocol):
        self._task = task.LoopingCall(self.write)
        self._task.start(60.0)
        Service.startService(self)
    else:
        self.disownServiceParent()
        global service
        service = None
        raise AssertionError(('%s is not configured' % (SERVICENAME,)))

dataset/ETHPy150Open OrbitzWorldwide/droned/droned/services/graphite.py Graphite.startService/VarMisuse@16/20 `self`->`service`