From d0c883fc0dbc64a6815aa8a03a9d11b28ccd8ded Mon Sep 17 00:00:00 2001 From: chrys87 Date: Mon, 13 Feb 2017 13:18:14 +0100 Subject: [PATCH] Update spell_check.py --- src/fenrir/commands/commands/spell_check.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/fenrir/commands/commands/spell_check.py b/src/fenrir/commands/commands/spell_check.py index 7d37150a..2497c856 100644 --- a/src/fenrir/commands/commands/spell_check.py +++ b/src/fenrir/commands/commands/spell_check.py @@ -25,6 +25,9 @@ class command(): def getDescription(self): return 'checks the spelling of the current word' def updateSpellLanguage(self): + if not initialized: + self.env['runtime']['outputManager'].presentText('pychant is not installed', interrupt=True) + return self.spellChecker = enchant.Dict(self.env['runtime']['settingsManager'].getSetting('general', 'spellCheckLanguage')) self.language = self.env['runtime']['settingsManager'].getSetting('general', 'spellCheckLanguage')