QScintilla/SpellChecker.py

changeset 4322
b4163b6ae674
parent 4295
3ec4679c3dcd
child 4563
881340f4bd0c
child 4632
ca310db386ed
--- a/QScintilla/SpellChecker.py	Sun Jul 19 17:04:14 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