Add None check to spellcheck context menu

This commit is contained in:
MatHuf 2023-09-20 15:54:29 -04:00
parent 87da52efd4
commit 069a2f2b8d

View file

@ -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