changeset 1194:09d5c233e840 draft

sources: Fix bug checking config setting.
author Ludovic Chabant <ludovic@chabant.com>
date Fri, 30 Dec 2022 16:49:32 -0800
parents 032920568ba7
children ae9387338db1
files piecrust/sources/posts.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/piecrust/sources/posts.py	Fri Dec 30 16:49:04 2022 -0800
+++ b/piecrust/sources/posts.py	Fri Dec 30 16:49:32 2022 -0800
@@ -221,7 +221,7 @@
 
     def _checkFsEndpointPath(self):
         if not os.path.isdir(self.fs_endpoint_path):
-            if self.ignore_missing_dir:
+            if self.config.get('ignore_missing_dir'):
                 return False
             raise InvalidFileSystemEndpointError(self.name,
                                                  self.fs_endpoint_path)