Make wmllint's spellcheck somewhat compatible with python-enchant 1.3.1.
This commit is contained in:
parent
139fa01217
commit
7566a3163b
1 changed files with 4 additions and 1 deletions
|
@ -1316,7 +1316,10 @@ def spellcheck(fn, d):
|
|||
#if local_spellings:
|
||||
# print "%s: slated for removal: %s" % (fn, local_spellings)
|
||||
for word in local_spellings:
|
||||
d.remove_from_session(word)
|
||||
try:
|
||||
d.remove_from_session(word)
|
||||
except AttributeError:
|
||||
print "Caught AttributeError when trying to remove %s from dict" % word
|
||||
|
||||
vctypes = (".svn", ".git")
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue