mirror of
https://github.com/olivierkes/manuskript.git
synced 2024-05-12 00:42:32 +12:00
Add None check to spellcheck context menu
This commit is contained in:
parent
87da52efd4
commit
069a2f2b8d
|
@ -363,7 +363,7 @@ class PySpellcheckerDictionary(BasicDictionary):
|
|||
|
||||
def getSuggestions(self, word):
|
||||
candidates = self._dict.candidates(word)
|
||||
if word in candidates:
|
||||
if candidates is not None and word in candidates:
|
||||
candidates.remove(word)
|
||||
return candidates
|
||||
|
||||
|
|
Loading…
Reference in a new issue