changeset 1943:df9505660776 namespaces

remove workaround for (meanwhile fixed) whoosh issue #200
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 03 Feb 2013 23:42:36 +0100
parents ef3b90a72626
children 880a0da120f9
files MoinMoin/storage/middleware/indexing.py
diffstat 1 files changed, 1 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/storage/middleware/indexing.py	Sun Feb 03 23:34:16 2013 +0100
+++ b/MoinMoin/storage/middleware/indexing.py	Sun Feb 03 23:42:36 2013 +0100
@@ -456,11 +456,7 @@
                     itemid = searcher.stored_fields(docnum_remove)[ITEMID]
             if docnum_remove is not None:
                 # we are removing a revid that is in latest revs index
-                try:
-                    latest_backends_revids = self._find_latest_backends_revids(self.ix[ALL_REVS], Term(ITEMID, itemid))
-                except AttributeError:
-                    # workaround for bug #200 AttributeError: 'FieldCache' object has no attribute 'code'
-                    latest_backends_revids = []
+                latest_backends_revids = self._find_latest_backends_revids(self.ix[ALL_REVS], Term(ITEMID, itemid))
                 if latest_backends_revids:
                     # we have a latest revision, just update the document in the index:
                     assert len(latest_backends_revids) == 1 # this item must have only one latest revision