]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
A missing basedir should cause an error if we try to read the config. refs #1971
authorDaira Hopwood <david-sarah@jacaranda.org>
Fri, 17 May 2013 19:47:42 +0000 (20:47 +0100)
committerDaira Hopwood <daira@jacaranda.org>
Wed, 9 Apr 2014 00:44:25 +0000 (01:44 +0100)
Signed-off-by: Daira Hopwood <david-sarah@jacaranda.org>
src/allmydata/node.py

index 5811c32ec8ee6a1ed7bed1dffca10d0a64fb2b59..c24dd084a382b7c445d4b01d00b65d447e2dffcc 100644 (file)
@@ -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. """