]> 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 <daira@jacaranda.org>
Fri, 17 May 2013 19:47:42 +0000 (20:47 +0100)
committerDaira Hopwood <daira@jacaranda.org>
Fri, 16 Oct 2015 16:56:24 +0000 (17:56 +0100)
Signed-off-by: Daira Hopwood <david-sarah@jacaranda.org>
src/allmydata/node.py

index 19e28ad1e084ecea1914adb56609e6556a363729..384c75fa089afe581d5fd96f288c1f4bcef46840 100644 (file)
@@ -130,6 +130,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. """