Skip to content

Commit e577cf2

Browse files
author
Richard Jones
committed
oops
1 parent 2c10e37 commit e577cf2

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

roundup/indexer.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
# that promote freedom, but obviously am giving up any rights
1515
# to compel such.
1616
#
17-
#$Id: indexer.py,v 1.9 2002-07-14 06:11:16 richard Exp $
17+
#$Id: indexer.py,v 1.10 2002-07-14 23:17:24 richard Exp $
1818
'''
1919
This module provides an indexer class, RoundupIndexer, that stores text
2020
indices in a roundup instance. This class makes searching the content of
@@ -282,7 +282,7 @@ def save_index(self):
282282
os.remove(self.indexdb + segment)
283283
except OSError, error:
284284
# probably just nonexistent segment index file
285-
if error.errno != errno.EEXIST: raise
285+
if error.errno != errno.ENOENT: raise
286286

287287
# First write the much simpler filename/fileid dictionaries
288288
dbfil = {'WORDS':None, 'FILES':self.files, 'FILEIDS':self.fileids}
@@ -333,6 +333,9 @@ def index_loaded(self):
333333

334334
#
335335
#$Log: not supported by cvs2svn $
336+
#Revision 1.9 2002/07/14 06:11:16 richard
337+
#Some TODOs
338+
#
336339
#Revision 1.8 2002/07/09 21:53:38 gmcm
337340
#Optimize Class.find so that the propspec can contain a set of ids to match.
338341
#This is used by indexer.search so it can do just one find for all the index matches.

0 commit comments

Comments
 (0)