diff rhodecode/lib/indexers/daemon.py @ 627:8d78d79b67a3

fixed bug when whoosh failed indexing an new repository.
author Marcin Kuzminski <marcin@python-works.com>
date Wed, 20 Oct 2010 17:57:55 +0200
parents 95a502d94860
children 7e536d1af60d
line wrap: on
line diff
--- a/rhodecode/lib/indexers/daemon.py	Wed Oct 20 02:31:28 2010 +0200
+++ b/rhodecode/lib/indexers/daemon.py	Wed Oct 20 17:57:55 2010 +0200
@@ -86,8 +86,9 @@
         based on repository walk function
         """
         index_paths_ = set()
-        tip = repo.get_changeset()
         try:
+            tip = repo.get_changeset()
+            
             for topnode, dirs, files in tip.walk('/'):
                 for f in files:
                     index_paths_.add(jn(repo.path, f.path))