diff options
author | Aaron Bentley <abentley@panoramicfeedback.com> | 2005-12-15 16:01:39 -0500 |
---|---|---|
committer | Aaron Bentley <abentley@panoramicfeedback.com> | 2005-12-15 16:01:39 -0500 |
commit | 00db1231de6d38609289287be2c00f924a116e15 (patch) | |
tree | 627def842a4cb5fd9020269b846f67fbcf4a87d0 /libbe/bugdir.py | |
parent | 3f678c4e0ba791054216cdb9fb25d1ccfd706737 (diff) | |
download | bugseverywhere-00db1231de6d38609289287be2c00f924a116e15.tar.gz |
Better error when bad path specified
Diffstat (limited to 'libbe/bugdir.py')
-rw-r--r-- | libbe/bugdir.py | 2 |
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")) |