mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
fix testing failures
when settings could be pathlib.Path
This commit is contained in:
parent
d817231836
commit
cfba3d72be
6 changed files with 58 additions and 39 deletions
|
|
@ -406,7 +406,7 @@ def handle_deprecated_settings(settings):
|
|||
for key in ['TRANSLATION_FEED_ATOM',
|
||||
'TRANSLATION_FEED_RSS'
|
||||
]:
|
||||
if settings.get(key) and '%s' in settings[key]:
|
||||
if settings.get(key) and not isinstance(settings[key], Path) and '%s' in settings[key]:
|
||||
logger.warning('%%s usage in %s is deprecated, use {lang} '
|
||||
'instead.', key)
|
||||
try:
|
||||
|
|
@ -423,7 +423,7 @@ def handle_deprecated_settings(settings):
|
|||
'TAG_FEED_ATOM',
|
||||
'TAG_FEED_RSS',
|
||||
]:
|
||||
if settings.get(key) and '%s' in settings[key]:
|
||||
if settings.get(key) and not isinstance(settings[key], Path) and '%s' in settings[key]:
|
||||
logger.warning('%%s usage in %s is deprecated, use {slug} '
|
||||
'instead.', key)
|
||||
try:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue