Make wmllint's spellcheck somewhat compatible with python-enchant 1.3.1.

This commit is contained in:
Alexander van Gessel 2008-11-05 11:48:52 +01:00
parent 139fa01217
commit 7566a3163b

View file

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