Commits

Anonymous committed ee7d41f

don't explode if a file has been removed from the repo but remains referenced in the search backend -- fixes http://trac-hacks.org/ticket/9791

  • Participants
  • Parent commits 79cfe1a

Comments (0)

Files changed (1)

multireposearch/search.py

             if repo is None:
                 # @@TODO: log it? ask the search backend to remove the reference?
                 continue
-            node = repo.get_node(filename)
+            try:
+                node = repo.get_node(filename)
+            except NoSuchNode, e:
+                # @@TODO: log it!
+                continue
 
             if node.kind == Node.DIRECTORY:
                 yield (self.env.href.browser(reponame, filename),