diff --git a/bento_aggregation_service/search/dataset_search.py b/bento_aggregation_service/search/dataset_search.py index fb18ddc..833df73 100644 --- a/bento_aggregation_service/search/dataset_search.py +++ b/bento_aggregation_service/search/dataset_search.py @@ -391,7 +391,7 @@ async def run_search_on_dataset( ) # Compute the intersection between the sets of results - results = dataset_linked_fields_results[0] + results = dataset_linked_fields_results[0] if len(dataset_linked_fields_results) > 0 else [] for r in dataset_linked_fields_results: results.intersection_update(r)