aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libbe/bugdir.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/libbe/bugdir.py b/libbe/bugdir.py
index 20b6d9b..0af4706 100644
--- a/libbe/bugdir.py
+++ b/libbe/bugdir.py
@@ -41,6 +41,8 @@ def tree_root(dir, old_version=False):
break;
elif rootdir == "/":
raise NoBugDir(dir)
+ elif not os.path.exists(rootdir):
+ raise NoRootEntry(rootdir)
rootdir=os.path.dirname(rootdir)
return BugDir(os.path.join(rootdir, ".be"))