Skip to content

Commit

Permalink
Add try/except to equivalent_types()
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieulemieux committed Sep 5, 2024
1 parent ebe12a3 commit a52e14f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pori_python/graphkb/match.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,10 @@ def equivalent_types(
# Get type terms from observed variant
terms1 = []
if strict:
terms1.append(get_term_by_name(conn, type1)['@rid'])
try:
terms1.append(get_term_by_name(conn, type1)['@rid'])
except:
pass
else:
terms1 = get_terms_set(conn, [type1])

Expand Down

0 comments on commit a52e14f

Please sign in to comment.