]> 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>
Fri, 10 Jul 2015 05:00:49 +0000 (06:00 +0100)
Signed-off-by: Daira Hopwood <david-sarah@jacaranda.org>
src/allmydata/node.py

index c7e96e70f280a29a41e7610541c92cbe9e9e8639..c2c234509c9b00d8f31a561ee7627176ff688559 100644 (file)
@@ -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. """