Skip to content

Commit

Permalink
issue #1113 - put the errors back
Browse files Browse the repository at this point in the history
  • Loading branch information
davmlaw committed Aug 14, 2024
1 parent b4f9711 commit a8144a9
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions snpdb/signals/variant_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a8144a9

Please sign in to comment.