Skip to content

Commit

Permalink
Merge pull request #171 from biothings/retry-sri
Browse files Browse the repository at this point in the history
SRIResolverFailiure -> SRINodeNormFailure
  • Loading branch information
tokebe authored Nov 2, 2023
2 parents 2447a5a + b499802 commit 48dab42
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import QEdge2APIEdgeHandler from './qedge2apiedge';
import LogEntry, { StampedLog } from './log_entry';
import { promises as fs } from 'fs';
import { getDescendants } from '@biothings-explorer/node-expansion';
import { resolveSRI, SRIResolverFailiure } from 'biomedical_id_resolver';
import { resolveSRI, SRINodeNormFailure } from 'biomedical_id_resolver';
import InferredQueryHandler from './inferred_mode/inferred_mode';
import KGNode from './graph/kg_node';
import KGEdge from './graph/kg_edge';
Expand Down Expand Up @@ -418,7 +418,7 @@ export default class TRAPIQueryHandler {
this.logs = [...this.logs, ...queryGraphHandler.logs];
return queryEdges;
} catch (err) {
if (err instanceof InvalidQueryGraphError || err instanceof SRIResolverFailiure) {
if (err instanceof InvalidQueryGraphError || err instanceof SRINodeNormFailure) {
throw err;
} else {
console.log(err.stack);
Expand Down

0 comments on commit 48dab42

Please sign in to comment.