Fixed an issue in the spell checker causing eric to fail at startup on Windows, if pyenchant was uninstalled. This happens because the uninstaller doesn't get rid of all files. The __pycache__ directories are left behind causing the failure.

Thu, 25 Jun 2015 19:09:11 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Thu, 25 Jun 2015 19:09:11 +0200
changeset 4295
3ec4679c3dcd
parent 4293
125a75cfd249
child 4297
8ece10107224

Fixed an issue in the spell checker causing eric to fail at startup on Windows, if pyenchant was uninstalled. This happens because the uninstaller doesn't get rid of all files. The __pycache__ directories are left behind causing the failure.

QScintilla/SpellChecker.py file | annotate | diff | comparison | revisions
--- a/QScintilla/SpellChecker.py	Thu Jun 25 18:58:34 2015 +0200
+++ b/QScintilla/SpellChecker.py	Thu Jun 25 19:09:11 2015 +0200
@@ -85,7 +85,7 @@
         if Preferences.getEditor("SpellCheckingEnabled"):
             try:
                 return len(enchant.list_languages()) > 0
-            except NameError:
+            except (NameError, AttributeError):
                 pass
         return False
     

eric ide

mercurial