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. 6_0_x

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

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Thu, 25 Jun 2015 19:09:11 +0200
branch
6_0_x
changeset 4296
2adf3457248f
parent 4294
bb90605f9382
child 4306
283afcf306eb

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.
(grafted from 3ec4679c3dcd7f5dacefedc5e7560c06db7440e2)

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