Skip to content
This repository has been archived by the owner on Mar 9, 2023. It is now read-only.

Raise ValueError when word defined in user dict is not found in system dict #154

Merged
merged 2 commits into from
Jun 7, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion sudachipy/dictionarylib/dictionarybuilder.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ def parse_splitinfo(self, info):
else:
ids.append(self.word_to_id(word))
if ids[-1] < 0:
return ValueError('not found such a word')
raise ValueError('not found such a word: {}'.format(word))
return ids

@staticmethod
Expand Down