I have a few directories in my trac project dir which are not tracs (such as .egg-cache).
To get the search all to succeed I simply added a try/except continue around opening the environment. I think that overall this makes the plugin more robust without it losing any capability.
Index: tracsearchall/searchall.py
===================================================================
--- tracsearchall/searchall.py (revision 4145)
+++ tracsearchall/searchall.py (working copy)
@@ -58,8 +58,10 @@
project_path = os.path.join(search_path,project)
if not os.path.isdir( project_path ):
continue
-
- env = open_environment(project_path)
+ try:
+ env = open_environment(project_path)
+ except:
+ continue
self.env.log.debug("Searching project %s" % project )
HTH and thanks for the plugin,
Russ