diff --git a/openlp/core/lib/spelltextedit.py b/openlp/core/lib/spelltextedit.py index e7f3d7ef0..61335002e 100644 --- a/openlp/core/lib/spelltextedit.py +++ b/openlp/core/lib/spelltextedit.py @@ -28,6 +28,7 @@ import re import sys try: import enchant + from enchant import DictNotFoundError enchant_available = True except ImportError: enchant_available = False @@ -47,7 +48,7 @@ class SpellTextEdit(QtGui.QPlainTextEdit): self.dict = enchant.Dict() self.highlighter = Highlighter(self.document()) self.highlighter.setDict(self.dict) - except: + except DictNotFoundError: enchant_available = False def mousePressEvent(self, event):