Gets a variant from the parser while disabling logging.

def _get_variant_silent(parser, variant):
    """Gets a variant from the parser while disabling logging."""
    prev_log = config.LOG_NOT_FOUND
    config.LOG_NOT_FOUND = False
    results = parser.get_variant_genotypes(variant)
    config.LOG_NOT_FOUND = prev_log
    return results