forked from github/pelican
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
|
|
@ -215,7 +215,7 @@ class Content:
|
|||
if not klass:
|
||||
klass = self.__class__.__name__
|
||||
fq_key = ('{}_{}'.format(klass, key)).upper()
|
||||
return self.settings[fq_key].format(**self.url_format)
|
||||
return str(self.settings[fq_key]).format(**self.url_format)
|
||||
|
||||
def get_url_setting(self, key):
|
||||
if hasattr(self, 'override_' + key):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue