Sun, 19 Jul 2015 17:07:28 +0200
Intercept an error in the spell checker caused by pyenchant doing some strange things.
(grafted from b4163b6ae674aa5d84ffff8c17d4770cd7e80edc)
QScintilla/SpellChecker.py | file | annotate | diff | comparison | revisions |
--- a/QScintilla/SpellChecker.py Sun Jul 19 17:02:09 2015 +0200 +++ b/QScintilla/SpellChecker.py Sun Jul 19 17:07:28 2015 +0200 @@ -343,7 +343,10 @@ line, index = self.editor.lineIndexFromPosition(pos) word = self.editor.getWord(line, index, useWordChars=False) if len(word) >= self.minimumWordSize: - ok = spell.check(word) + try: + ok = spell.check(word) + except enchant.errors.Error: + ok = True else: ok = True start, end = self.editor.getWordBoundaries(