aboutsummaryrefslogtreecommitdiffstats
path: root/libbe
diff options
context:
space:
mode:
authorW. Trevor King <wking@drexel.edu>2010-01-01 14:41:01 -0500
committerW. Trevor King <wking@drexel.edu>2010-01-01 14:41:01 -0500
commitd313d3651ae5875fda86491e693e1963d2de91a5 (patch)
tree47e841d949ac47d49875dc6f09e72bd15fe241e1 /libbe
parent95f9395487126f97225f5e25f0c833ee6c02a644 (diff)
downloadbugseverywhere-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')
-rw-r--r--libbe/storage/vcs/base.py6
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):
"""