import logging


def _get_obj_silent_fail(qs, **lookup):
    """
        Gets an object and returns None if it does not exist
    """
    try:
        return qs.get(**lookup)
    except qs.model.DoesNotExist:
        logging.info(
            "Could not find object %s from queryset %s", lookup, qs.__class__)