Skip to content

Commit

Permalink
fixed default for data_source_folders (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
rosscdh authored Jan 12, 2021
1 parent e789b63 commit f746769
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion markdownextradata/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(',')
Expand Down

0 comments on commit f746769

Please sign in to comment.