aboutsummaryrefslogtreecommitdiffstats
path: root/libbe/bugdir.py
diff options
context:
space:
mode:
authorAaron Bentley <abentley@panoramicfeedback.com>2005-12-15 16:01:39 -0500
committerAaron Bentley <abentley@panoramicfeedback.com>2005-12-15 16:01:39 -0500
commit00db1231de6d38609289287be2c00f924a116e15 (patch)
tree627def842a4cb5fd9020269b846f67fbcf4a87d0 /libbe/bugdir.py
parent3f678c4e0ba791054216cdb9fb25d1ccfd706737 (diff)
downloadbugseverywhere-00db1231de6d38609289287be2c00f924a116e15.tar.gz
Better error when bad path specified
Diffstat (limited to 'libbe/bugdir.py')
-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"))