

def handle_one(self, check):
    ' Send an alert for a single check.\n\n        Return True if an appropriate check was selected and processed.\n        Return False if no checks need to be processed.\n\n        '
    check.status = check.get_status()
    check.save()
    tmpl = '\nSending alert, status=%s, code=%s\n'
    self.stdout.write((tmpl % (check.status, check.code)))
    errors = check.send_alert()
    for (ch, error) in errors:
        self.stdout.write(('ERROR: %s %s %s\n' % (ch.kind, errors.value, error)))
    connection.close()
    return True

dataset/ETHPy150Open healthchecks/healthchecks/hc/api/management/commands/sendalerts.py Command.handle_one/VarMisuse@88/188 `ch`->`errors`