Skip to content

Commit

Permalink
fixe Issue #182
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholascar committed Jan 2, 2023
1 parent 4ddcfa3 commit d0c9ae5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pylode/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -448,8 +448,10 @@ def _get_ont_type(ont___, back_onts___, iri___):
anchor = a(f"{v}", href=frag_iri if frag_iri is not None else iri__)
else:
try:
qname = ont__.compute_qname(iri__, True)
except ValueError:
qname = ont__.compute_qname(iri__, False)
if "ASGS" in qname[2]:
print(qname)
except Exception:
qname = iri__
prefix = "" if qname[0] == "" else f"{qname[0]}:"

Expand Down

0 comments on commit d0c9ae5

Please sign in to comment.