A missing basedir should cause an error if we try to read the config. refs #1971
Signed-off-by: Daira Hopwood <david-sarah@jacaranda.org>
This commit is contained in:
parent
11087d6dfa
commit
5800e5e5b2
|
@ -109,6 +109,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. """
|
||||
|
|
Loading…
Reference in New Issue