mirror of
https://github.com/olivierkes/manuskript.git
synced 2024-06-01 10:39:34 +12:00
Fix errors when language tool isn't installed
This commit is contained in:
parent
b090c11a9c
commit
9bb64d2471
|
@ -538,10 +538,10 @@ def get_languagetool_locale_language():
|
||||||
|
|
||||||
class LanguageToolDictionary(BasicDictionary):
|
class LanguageToolDictionary(BasicDictionary):
|
||||||
|
|
||||||
if use_language_check:
|
if languagetool:
|
||||||
_tool = None
|
|
||||||
else:
|
|
||||||
_tool = languagetool.LanguageTool()
|
_tool = languagetool.LanguageTool()
|
||||||
|
else:
|
||||||
|
_tool = None
|
||||||
|
|
||||||
def __init__(self, name):
|
def __init__(self, name):
|
||||||
BasicDictionary.__init__(self, name)
|
BasicDictionary.__init__(self, name)
|
||||||
|
|
Loading…
Reference in a new issue