Skip to content

Commit

Permalink
turn off secure query errors in debug mode
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlougheed committed Jul 28, 2021
1 parent 88efac1 commit bde9bbc
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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__ = [
Expand Down Expand Up @@ -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)

Expand Down

0 comments on commit bde9bbc

Please sign in to comment.