From 00db1231de6d38609289287be2c00f924a116e15 Mon Sep 17 00:00:00 2001 From: Aaron Bentley Date: Thu, 15 Dec 2005 16:01:39 -0500 Subject: [PATCH] Better error when bad path specified --- libbe/bugdir.py | 2 ++ 1 file changed, 2 insertions(+) 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")) -- 2.26.2