From a8144a98b933f6088cc28bda8e18fbe8f0959793 Mon Sep 17 00:00:00 2001 From: Dave Lawrence Date: Wed, 14 Aug 2024 13:03:56 +0930 Subject: [PATCH] issue #1113 - put the errors back --- snpdb/signals/variant_search.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/snpdb/signals/variant_search.py b/snpdb/signals/variant_search.py index d54dda94e..2f850e8cf 100644 --- a/snpdb/signals/variant_search.py +++ b/snpdb/signals/variant_search.py @@ -503,10 +503,8 @@ def search_hgvs(search_input: SearchInputInstance) -> Iterable[SearchResult]: classify=search_input.classify) results = list(results) # read iterator to trigger exceptions except Exception as e: - if search_input.user.is_superuser: - message = str(e) - else: - message = "Cannot resolve HGVS" + # We want to return errors with the HGVS but not show implementation details... + message = str(e) results = [SearchResult.error_result(message, genome_build)] for_all_genome_builds.append(results) return itertools.chain(*for_all_genome_builds)