Skip to content
Snippets Groups Projects
Commit 5aa64672 authored by Haak, R. (Romeo)'s avatar Haak, R. (Romeo)
Browse files

Crude fix on line 79 to enforce no out of bounds error

parent b712da7a
No related branches found
No related tags found
No related merge requests found
......@@ -76,7 +76,7 @@ class MistakeFinder:
src_index = self._source.index(
self._shadow[shd_anchor_index].anchor)
while self._source[src_index].get_difference(shd_word) > 0 and\
not semantic_mistake:
not semantic_mistake and src_index < (len(self._source)-1): # Crude fix, but removes error
src_word = self._source[src_index]
if self.semantically_related(src_word, shd_word):
shd_word.mistake = Mistake.SEMANTIC
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment