Skip to content

Commit

Permalink
Update term.py
Browse files Browse the repository at this point in the history
  • Loading branch information
cthoyt committed Feb 5, 2024
1 parent 673c95f commit eabc938
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gilda/term.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ def __init__(self, norm_text, text, db, id, entry_name, status, source,
organism=None, source_db=None, source_id=None):
if not text:
raise ValueError('Text for Term cannot be empty')
if not norm_text.strip():
raise ValueError('Normalized text for Term cannot be empty')
self.norm_text = norm_text
self.text = text
self.db = db
Expand Down

0 comments on commit eabc938

Please sign in to comment.