Fix errors when language tool isn't installed

This commit is contained in:
Belug 2021-04-11 11:07:20 -04:00
parent b090c11a9c
commit 9bb64d2471

View file

@ -538,10 +538,10 @@ def get_languagetool_locale_language():
class LanguageToolDictionary(BasicDictionary):
if use_language_check:
_tool = None
else:
if languagetool:
_tool = languagetool.LanguageTool()
else:
_tool = None
def __init__(self, name):
BasicDictionary.__init__(self, name)