From: Aaron Bentley Date: Thu, 15 Dec 2005 21:01:39 +0000 (-0500) Subject: Better error when bad path specified X-Git-Tag: 1.0.0~260 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=00db1231de6d38609289287be2c00f924a116e15;p=be.git Better error when bad path specified --- 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"))