Anonymous committed ee7d41f

don't explode if a file has been removed from the repo but remains referenced in the search backend -- fixes

  • Participants
  • Parent commits 79cfe1a

Comments (0)

Files changed (1)


             if repo is None:
                 # @@TODO: log it? ask the search backend to remove the reference?
-            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),