projects
/
tahoe-lafs
/
tahoe-lafs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8fb27ea
)
A missing basedir should cause an error if we try to read the config. refs #1971
author
Daira Hopwood
<david-sarah@jacaranda.org>
Fri, 17 May 2013 19:47:42 +0000
(20:47 +0100)
committer
Daira Hopwood
<daira@jacaranda.org>
Tue, 4 Aug 2015 18:10:28 +0000
(19:10 +0100)
Signed-off-by: Daira Hopwood <david-sarah@jacaranda.org>
src/allmydata/node.py
patch
|
blob
|
history
diff --git
a/src/allmydata/node.py
b/src/allmydata/node.py
index 0bafc2b380aa59112245c2d7f86499b6278a589f..45470a553b69fe5da8c6ee7616dfa1639b8982f9 100644
(file)
--- a/
src/allmydata/node.py
+++ b/
src/allmydata/node.py
@@
-119,6
+119,8
@@
class ConfigMixin:
except EnvironmentError:
if os.path.exists(tahoe_cfg):
raise
+ if not os.path.isdir(self.basedir):
+ raise MissingConfigEntry("%s is missing or not a directory." % quote_output(self.basedir))
def error_about_old_config_files(self):
""" If any old configuration files are detected, raise OldConfigError. """