def METHOD_NAME(self, failure, sport, cport):
    if failure.check(IdentError):
        self.sendLine("%d, %d : ERROR : %s" % (sport, cport, failure.value))
    else:
        log.err(failure)
        self.sendLine(
            "%d, %d : ERROR : %s" % (sport, cport, IdentError(failure.value))
        )