

def close(self, scope, alert_type):
    try:
        content_type = ct_models.ContentType.objects.get_for_model(scope)
        alert = models.Alert.objects.get(object_id=scope.id, content_type=content_type, alert_type=alert_type, closed__isnull=True)
        alert.close()
    except models.Alert.DoesNotExist:
        pass

dataset/ETHPy150Open opennode/nodeconductor/nodeconductor/logging/loggers.py AlertLogger.close/original