From: W. Trevor King Date: Fri, 1 Jan 2010 19:41:01 +0000 (-0500) Subject: Hand nonexistent paths in VCS._u_search_parent_directories(). X-Git-Tag: 1.0.0~59^2~50^2~9 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=d313d3651ae5875fda86491e693e1963d2de91a5;p=be.git Hand nonexistent paths in VCS._u_search_parent_directories(). search_parent_directries raises an AssertionError if the original path doesn't exist. --- 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): """