Skip to content

Commit

Permalink
Check for stripped normalized text
Browse files Browse the repository at this point in the history
  • Loading branch information
nanglo123 committed Sep 26, 2024
1 parent d1980e2 commit e9add78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mira/dkg/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -803,7 +803,7 @@ def get_terms(
)
for synonym in synonyms or []:
norm_text = normalize(synonym)
if norm_text:
if norm_text.strip():
yield Term(
norm_text=norm_text,
text=synonym,
Expand Down

0 comments on commit e9add78

Please sign in to comment.