[Zope-Checkins] CVS: Zope/lib/python/Products/ZCTextIndex/tests - mhindex.py:1.16
Guido van Rossum
guido@python.org
Wed, 10 Jul 2002 14:02:10 -0400
Update of /cvs-repository/Zope/lib/python/Products/ZCTextIndex/tests
In directory cvs.zope.org:/tmp/cvs-serv10762
Modified Files:
mhindex.py
Log Message:
Don't die if a message doesn't exist. Unindex it instead.
=== Zope/lib/python/Products/ZCTextIndex/tests/mhindex.py 1.15 => 1.16 ===
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)