From d313d3651ae5875fda86491e693e1963d2de91a5 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Fri, 1 Jan 2010 14:41:01 -0500 Subject: [PATCH] Hand nonexistent paths in VCS._u_search_parent_directories(). search_parent_directries raises an AssertionError if the original path doesn't exist. --- libbe/storage/vcs/base.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libbe/storage/vcs/base.py b/libbe/storage/vcs/base.py index 39f5082..e0d3170 100644 --- a/libbe/storage/vcs/base.py +++ b/libbe/storage/vcs/base.py @@ -877,7 +877,11 @@ os.listdir(self.get_path("bugs")): /.be or None if none of those files exist. """ - return search_parent_directories(path, filename) + try: + ret = search_parent_directories(path, filename) + except AssertionError, e: + return None + return ret def _u_find_id(self, id, revision): """ -- 2.26.2