settings: Fix deprecation warning in configure_settings()

The broken code came from my 1d4d86c (settings: Rework the
LESS_GENERATOR removal warning for easy extension, 2013-03-24), where
I put formatting placeholders ({}) into the warning message, but
forgot to fill them in :/.
This commit is contained in:
W. Trevor King 2013-06-13 21:12:43 -04:00
commit 180cf9165f

View file

@ -261,9 +261,10 @@ def configure_settings(settings):
'https://github.com/getpelican/pelican/blob/master/docs/settings.rst#path-metadata'),
]:
if old in settings:
message = 'The {} setting has been removed in favor of {}'
message = 'The {} setting has been removed in favor of {}'.format(
old, new)
if doc:
message += ', see {} for details'
message += ', see {} for details'.format(doc)
logger.warning(message)
return settings