Error for non trac-projects in the project dir
|Reported by:||bobbysmith007||Owned by:||airadier|
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.
58 58 project_path = os.path.join(search_path,project) 59 59 if not os.path.isdir( project_path ): 60 60 continue 61 62 env = open_environment(project_path) 61 try: 62 env = open_environment(project_path) 63 except: 64 continue 63 65 64 66 65 67 self.env.log.debug("Searching project %s" % project )
HTH and thanks for the plugin,