QScintilla/SpellChecker.py

changeset 4161
9eaeac74fd91
parent 4021
195a471c327b
child 4295
3ec4679c3dcd
--- a/QScintilla/SpellChecker.py	Sat Mar 07 15:49:10 2015 +0100
+++ b/QScintilla/SpellChecker.py	Sun Mar 08 12:05:08 2015 +0100
@@ -525,8 +525,12 @@
                 self.pos = wordEnd
                 if (wordEnd - wordStart) >= self.minimumWordSize and \
                    self.__checkRegion(wordStart):
-                    if spell.check(word):
-                        continue
+                    try:
+                        if spell.check(word):
+                            continue
+                    except enchant.errors.Error:
+                        # ignore these
+                        pass
                     if word in self.__ignoreWords:
                         continue
                     self.word = word

eric ide

mercurial