diff options
author | W. Trevor King <wking@drexel.edu> | 2010-01-01 14:41:01 -0500 |
---|---|---|
committer | W. Trevor King <wking@drexel.edu> | 2010-01-01 14:41:01 -0500 |
commit | d313d3651ae5875fda86491e693e1963d2de91a5 (patch) | |
tree | 47e841d949ac47d49875dc6f09e72bd15fe241e1 /libbe/storage/vcs/base.py | |
parent | 95f9395487126f97225f5e25f0c833ee6c02a644 (diff) | |
download | bugseverywhere-d313d3651ae5875fda86491e693e1963d2de91a5.tar.gz |
Hand nonexistent paths in VCS._u_search_parent_directories().
search_parent_directries raises an AssertionError if the original path
doesn't exist.
Diffstat (limited to 'libbe/storage/vcs/base.py')
-rw-r--r-- | libbe/storage/vcs/base.py | 6 |
1 files changed, 5 insertions, 1 deletions
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): """ |