Skip to content

Commit

Permalink
Merge pull request #863 from belug23/fix_language_tool
Browse files Browse the repository at this point in the history
Fix errors when language tool isn't installed
  • Loading branch information
TheJackiMonster committed Apr 11, 2021
2 parents b090c11 + 9bb64d2 commit b4d759a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions manuskript/functions/spellchecker.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b4d759a

Please sign in to comment.