Skip to content
This repository has been archived by the owner on May 13, 2020. It is now read-only.

Commit

Permalink
Don't die if a message doesn't exist. Unindex it instead.
Browse files Browse the repository at this point in the history
  • Loading branch information
gvanrossum committed Jul 10, 2002
1 parent c475e71 commit 92b7a44
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/mhindex.py
Expand Up @@ -454,7 +454,12 @@ def updatefolder(self, f, msgs):
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)
Expand Down

0 comments on commit 92b7a44

Please sign in to comment.