Skip to content

Commit

Permalink
Replace exception with warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
deepakunni3 committed Dec 7, 2020
1 parent 9dbf342 commit 593c963
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bmt/toolkit.py
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ def get_element(self, name: str) -> Optional[Element]:
if '_' in name:
element = self.get_element(name.replace('_', ' '))
if not element:
raise ValueError(f"{name} is not a valid Biolink Model element")
logging.warning(f"{name} is not a valid Biolink Model element")
return element

def get_slot_domain(self, slot_name, include_ancestors: bool = False, formatted: bool = False) -> List[str]:
Expand Down

0 comments on commit 593c963

Please sign in to comment.