Skip to content

Commit

Permalink
Fix issue when no MIRIAM prefix is available
Browse files Browse the repository at this point in the history
This should have been caught by type checking
  • Loading branch information
cthoyt committed Jul 24, 2023
1 parent f622cde commit 2140b42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pyobo/gilda_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def normalize_identifier(prefix: str, identifier: str) -> str:
resource = bioregistry.get_resource(prefix)
if resource is None:
raise KeyError
return resource.miriam_standardize_identifier(identifier)
return resource.miriam_standardize_identifier(identifier) or identifier


def get_grounder(
Expand Down

0 comments on commit 2140b42

Please sign in to comment.