Skip to content

Commit

Permalink
fix: do not throw on missing gene ClinVar data (#145)
Browse files Browse the repository at this point in the history
  • Loading branch information
holtgrewe authored Feb 23, 2024
1 parent bc98bdb commit 6cbb057
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/stores/geneInfo/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,9 @@ export const useGeneInfoStore = defineStore('geneInfo', () => {
try {
geneClinvar.value = await annonarsClient.fetchGeneClinvarInfo(hgncIdQuery)
} catch (e) {
throw new Error(`No gene clinvar data found: ${e}`)
// Query for gene ClinVar information failed, assuming no ClinVar information.
// TODO: differentiate 404 and others
geneClinvar.value = undefined
}

const vigunoClient = new VigunoClient()
Expand Down

0 comments on commit 6cbb057

Please sign in to comment.