QScintilla/SpellChecker.py

branch
6_0_x
changeset 4323
572ac5a5cbc4
parent 4296
2adf3457248f
child 4563
881340f4bd0c
child 4632
ca310db386ed
--- 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(

eric ide

mercurial