mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Fix critical error with pelican --markup argument
If the --markup argument is given, then the following error occurs: CRITICAL: endswith first arg must be str, unicode, or tuple, not list To fix the error, cast the list to a tuple before calling 'endswith'.
This commit is contained in:
parent
4d9197d139
commit
ca7d204c11
1 changed files with 1 additions and 1 deletions
|
|
@ -98,7 +98,7 @@ class Generator(object):
|
|||
if extensions is None:
|
||||
extensions = self.markup
|
||||
basename = os.path.basename(path)
|
||||
if extensions is False or basename.endswith(extensions):
|
||||
if extensions is False or basename.endswith(tuple(extensions)):
|
||||
return True
|
||||
return False
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue