def fail(self, check):
        """Send failure if not already notified"""
        incident_key = '%s:%s' % (check['hostname'], check['check'])
        ok = self._send_email(check)
        if ok:
            self.logger.info('Sent mailgun alert for %s' % incident_key)
        else:
            # TODO: do backup notifications
            pass
dataset/ETHPy150Open pandemicsyn/stalker/stalkeragent/stalkeragent/stalker_notifications.py/Mailgun.fail/original