From bde9bbc9f492983064fb0ad62dd14c71c03ee36a Mon Sep 17 00:00:00 2001 From: David Lougheed Date: Wed, 28 Jul 2021 12:41:39 -0400 Subject: [PATCH] turn off secure query errors in debug mode --- .../search/dataset_search/process_dataset_results.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bento_federation_service/search/dataset_search/process_dataset_results.py b/bento_federation_service/search/dataset_search/process_dataset_results.py index b644ba8..89daa95 100644 --- a/bento_federation_service/search/dataset_search/process_dataset_results.py +++ b/bento_federation_service/search/dataset_search/process_dataset_results.py @@ -5,7 +5,7 @@ from typing import Any, Dict, List, Optional, Tuple -from bento_federation_service.constants import SERVICE_NAME +from bento_federation_service.constants import CHORD_DEBUG, SERVICE_NAME __all__ = [ @@ -186,7 +186,8 @@ def process_dataset_results( ic = None if join_query_ast is not None: ic = check_ast_against_data_structure(join_query_ast, dataset_results, dataset_object_schema, - internal=True, return_all_index_combinations=include_internal_data) + internal=True, return_all_index_combinations=include_internal_data, + secure_errors=not CHORD_DEBUG) if isinstance(ic, Iterable): ic = tuple(ic)