forked from github/pelican
Fix error in --extra-settings feature. Refs #2789
This commit is contained in:
parent
de793fa9f0
commit
4c440e6b7d
2 changed files with 4 additions and 2 deletions
|
|
@ -13,7 +13,7 @@ You can also specify extra settings via ``-e`` / ``--extra-settings`` option
|
|||
flags, which will override default settings as well as any defined within
|
||||
settings files::
|
||||
|
||||
pelican content -e DELETE_OUTPUT_DIRECTORY=True
|
||||
pelican content -e DELETE_OUTPUT_DIRECTORY=true
|
||||
|
||||
.. note::
|
||||
|
||||
|
|
|
|||
|
|
@ -662,10 +662,12 @@ def configure_settings(settings):
|
|||
|
||||
|
||||
def coerce_overrides(overrides):
|
||||
if overrides is None:
|
||||
return {}
|
||||
coerced = {}
|
||||
types_to_cast = {int, str}
|
||||
for k, v in overrides.items():
|
||||
if k not in overrides:
|
||||
if k not in DEFAULT_CONFIG:
|
||||
logger.warning('Override for unknown setting %s, ignoring', k)
|
||||
continue
|
||||
setting_type = type(DEFAULT_CONFIG[k])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue