mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Merge d0d60c9129 into 7eb30596f6
This commit is contained in:
commit
f62f10eea7
1 changed files with 6 additions and 0 deletions
|
|
@ -416,6 +416,9 @@ class ArticlesGenerator(Generator):
|
|||
preread_sender=self,
|
||||
context_signal=signals.article_generator_context,
|
||||
context_sender=self)
|
||||
except IndexError as e:
|
||||
# Ignore empty files silently
|
||||
continue
|
||||
except Exception as e:
|
||||
logger.warning('Could not process {}\n{}'.format(f, e))
|
||||
continue
|
||||
|
|
@ -535,6 +538,9 @@ class PagesGenerator(Generator):
|
|||
preread_sender=self,
|
||||
context_signal=signals.page_generator_context,
|
||||
context_sender=self)
|
||||
except IndexError as e:
|
||||
# Ignore empty files silently
|
||||
continue
|
||||
except Exception as e:
|
||||
logger.warning('Could not process {}\n{}'.format(f, e))
|
||||
continue
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue