mirror of
https://github.com/olivierkes/manuskript.git
synced 2024-05-21 21:32:26 +12:00
Merge pull request #863 from belug23/fix_language_tool
Fix errors when language tool isn't installed
This commit is contained in:
commit
b4d759a836
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue