[Zope3-checkins] CVS: Zope3/src/zope/fieldindex - fieldindex.py:1.6
Andreas Jung
andreas@andreas-jung.com
Thu, 27 Mar 2003 06:19:51 -0500
Update of /cvs-repository/Zope3/src/zope/fieldindex
In directory cvs.zope.org:/tmp/cvs-serv26775
Modified Files:
fieldindex.py
Log Message:
avoiding bare try..except:...
=== Zope3/src/zope/fieldindex/fieldindex.py 1.5 => 1.6 ===
--- Zope3/src/zope/fieldindex/fieldindex.py:1.5 Thu Mar 27 05:16:25 2003
+++ Zope3/src/zope/fieldindex/fieldindex.py Thu Mar 27 06:19:51 2003
@@ -74,7 +74,7 @@
self._fwd_index[value].remove(docid)
if len(self._fwd_index[value]) == 0:
del self._fwd_index[value]
- except: pass
+ except KeyError: pass
def search(self, values):
@@ -96,7 +96,7 @@
else:
try: result = IISet(self._fwd_index[values])
- except: result = IISet()
+ except KeyError: result = IISet()
return result