mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Add warnings for files skipped due to unknown status
This commit is contained in:
parent
1779b66f10
commit
849244f61e
1 changed files with 4 additions and 0 deletions
|
|
@ -284,6 +284,10 @@ class ArticlesGenerator(Generator):
|
|||
all_articles.append(article)
|
||||
elif article.status == "draft":
|
||||
self.drafts.append(article)
|
||||
else:
|
||||
logger.warning(u"Unknown status %s for file %s, skipping it." %
|
||||
(repr(unicode.encode(article.status, 'utf-8')),
|
||||
repr(f)))
|
||||
|
||||
self.articles, self.translations = process_translations(all_articles)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue