Commit 52d70e30 authored by Guido van Rossum's avatar Guido van Rossum

Don't die if a message doesn't exist. Unindex it instead.

parent 45189c67
......@@ -454,7 +454,12 @@ class Indexer:
print "unchanged", docid, path
continue
docid = self.newdocid(path)
m = f.openmessage(n)
try:
m = f.openmessage(n)
except IOError:
print "disappeared", docid, path
self.unindexpath(path)
continue
text = self.getmessagetext(m, f.name)
if not text:
self.unindexpath(path)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment