Fixed bug in loading of dictionary without enchant installed
This commit is contained in:
@@ -26,13 +26,19 @@
|
||||
"""
|
||||
|
||||
import logging
|
||||
import enchant
|
||||
import nw
|
||||
try:
|
||||
import enchant
|
||||
except:
|
||||
# No need to do anything
|
||||
# setLanguage will fall back to dummy dictionary
|
||||
pass
|
||||
|
||||
from nw.tools.spellcheck import NWSpellCheck
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
class NWSpellEnchant(NWSpellCheck):
|
||||
|
||||
def __init__(self):
|
||||
|
||||
Reference in New Issue
Block a user