mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Ignore empty files silently. Fixes #1203.
This commit is contained in:
parent
0b3dc9db21
commit
d0d60c9129
1 changed files with 6 additions and 0 deletions
|
|
@ -398,6 +398,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
|
||||
|
|
@ -506,6 +509,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