1
0
Fork 0
forked from github/pelican
pelican-theme/pelican
Will Thompson 904f57d9c3 MarkdownReader: don't raise AttributeError on empty files
Markdown.convert() returns early, without running any preprocessors, if
source.strip() is empty.

Before, Pelican would raise AttributeError in this case; now, it logs a
more friendly error:

ERROR: Skipping ./foo.md: could not find information about 'NameError: title'

which is more consistent with the error from empty .rst files:

ERROR: Skipping ./foo.rst: could not find information about 'NameError: date'
2016-08-11 07:51:39 +01:00
..
tests Makes DEFAULT_DATE accept string dates; fixes #1464 2016-05-24 17:22:27 +03:00
themes Use <time> instead of <abbr>. 2015-11-05 22:28:46 +01:00
tools Merge pull request #1923 from Jangsea/use_ghp_import_push_option 2016-04-03 18:51:23 -07:00
__init__.py Don't fail if --fatal not provided 2016-01-18 13:04:52 +01:00
cache.py fulfil pep8 standard 2015-08-17 13:34:32 +02:00
contents.py More granular control of tags and categories slugs. Fixes #1873 2016-04-01 23:00:08 +03:00
generators.py Fix #1291: Feeds have ambiguous titles on sites with multiple categories. 2016-04-17 10:42:52 -04:00
log.py Add --fatal=errors|warnings program option 2016-01-09 02:42:02 +01:00
paginator.py fulfil pep8 standard 2015-08-17 13:34:32 +02:00
readers.py MarkdownReader: don't raise AttributeError on empty files 2016-08-11 07:51:39 +01:00
rstdirectives.py fulfil pep8 standard 2015-08-17 13:34:32 +02:00
server.py fulfil pep8 standard 2015-08-17 13:34:32 +02:00
settings.py Avoid Markdown 2.6 deprecations; make MD_EXTENSIONS a dict 2015-11-30 18:12:28 +01:00
signals.py fulfil pep8 standard 2015-08-17 13:34:32 +02:00
urlwrappers.py Add AUTHOR_SUBSTITUTIONS 2016-04-01 23:01:57 +03:00
utils.py pelican_open: don't raise IndexError on empty files 2016-08-11 07:46:53 +01:00
writers.py Fix #1291: Feeds have ambiguous titles on sites with multiple categories. 2016-04-17 10:42:52 -04:00