Skip to content

Commit

Permalink
Revert "Revert "remove debig code""
Browse files Browse the repository at this point in the history
This reverts commit 940f3b9.
  • Loading branch information
hanars committed Feb 14, 2024
1 parent f734bb8 commit c9c1e39
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions hail_search/queries/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,23 +272,22 @@ def _load_filtered_project_hts(self, project_samples, skip_all_missing=False, **
filtered_project_hts = []
exception_messages = set()
for i, (project_guid, project_sample_data) in enumerate(project_samples.items()):
project_ht = self._read_table(
f'projects/{project_guid}.ht',
use_ssd_dir=True,
skip_missing_field='family_entries' if skip_all_missing or i > 0 else None,
)
if project_ht is None:
continue
try:
project_ht = self._read_table(
f'projects/{project_guid}.ht',
use_ssd_dir=True,
skip_missing_field='family_entries' if skip_all_missing or i > 0 else None,
)
if project_ht is None:
continue
filtered_project_hts.append(
(*self._filter_entries_table(project_ht, project_sample_data, **kwargs), len(project_sample_data))
)
except Exception as e:
exception_messages.add(str(e))
except HTTPBadRequest as e:
exception_messages.add(e.reason)

if exception_messages:
logger.info(f'Error in {len(exception_messages)} projects')
#raise HTTPBadRequest(reason='; '.join(exception_messages))
raise HTTPBadRequest(reason='; '.join(exception_messages))

return filtered_project_hts

Expand Down

0 comments on commit c9c1e39

Please sign in to comment.