Merge pull request #863 from belug23/fix_language_tool

Fix errors when language tool isn't installed
This commit is contained in:
Tobias Frisch 2021-04-11 17:21:06 +02:00 committed by GitHub
commit b4d759a836
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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)