QScintilla/SpellChecker.py

branch
6_0_x
changeset 4167
763149f3a87e
parent 4022
f5f42921717e
child 4295
3ec4679c3dcd
diff -r ba30f95a0ec2 -r 763149f3a87e QScintilla/SpellChecker.py
--- a/QScintilla/SpellChecker.py	Sat Mar 07 12:41:21 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