From f7467691aa1c43e531790df0f65cc11f03ff9a5d Mon Sep 17 00:00:00 2001 From: Ross Crawford-d'Heureuse Date: Tue, 12 Jan 2021 13:39:19 +0100 Subject: [PATCH] fixed default for data_source_folders (#33) --- markdownextradata/plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/markdownextradata/plugin.py b/markdownextradata/plugin.py index c4d5ced..354dcdf 100644 --- a/markdownextradata/plugin.py +++ b/markdownextradata/plugin.py @@ -51,7 +51,7 @@ def on_pre_build(self, config, **kwargs): # Does nothing if the dir does not exist. # assume an empty list if not defined - data_source_folders = self.config.get("data") + data_source_folders = self.config.get("data", {}) # cast as a list if is defined but is a string if isinstance(data_source_folders, str): data_source_folders = data_source_folders.split(',')