Skip to content

Commit

Permalink
Merge pull request #4585 from broadinstitute/handle-check-saples-anno…
Browse files Browse the repository at this point in the history
…tation-reload-error

add error handling for reload annotations failure
  • Loading branch information
hanars authored Jan 16, 2025
2 parents a52ebdc + 0949e46 commit ab42e9c
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,12 @@ def handle(self, *args, **options):
reset_cached_search_results(project=None)

for data_type_key, updated_families in updated_families_by_data_type.items():
self._reload_shared_variant_annotations(
*data_type_key, updated_variants_by_data_type[data_type_key], exclude_families=updated_families,
)
try:
self._reload_shared_variant_annotations(
*data_type_key, updated_variants_by_data_type[data_type_key], exclude_families=updated_families,
)
except Exception as e:
logger.error(f'Error reloading shared annotations for {data_type_key.join("/")}: {e}')

logger.info('DONE')

Expand Down

0 comments on commit ab42e9c

Please sign in to comment.