changeset 1225:d7d17b4285f5

ensure timings are correct for _xapianSearch
author Franz Pletz <fpletz AT franz-pletz DOT org>
date Sun, 06 Aug 2006 14:33:56 +0200
parents 64c02d0697d5
children 9b101f696445
files MoinMoin/search/builtin.py
diffstat 1 files changed, 5 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/search/builtin.py	Sun Aug 06 14:12:26 2006 +0200
+++ b/MoinMoin/search/builtin.py	Sun Aug 06 14:33:56 2006 +0200
@@ -421,10 +421,12 @@
                 pass
             #except AttributeError:
             #    pages = []
-            self.request.clock.stop('_xapianSearch')
 
-            if not self.query.xapian_need_postproc():
-                return self._getHits(hits, self._xapianMatch)
+            try:
+                if not self.query.xapian_need_postproc():
+                    return self._getHits(hits, self._xapianMatch)
+            finally:
+                self.request.clock.stop('_xapianSearch')
         
         return self._moinSearch(pages)