1
0
Fork 0
forked from github/pelican

Fix typo for updated and failure for None. #1933

This commit is contained in:
Karl Dubost 2016-04-05 10:25:21 +09:00
commit 66410b9396

View file

@ -56,9 +56,9 @@ class Writer(object):
author_name=getattr(item, 'author', ''),
pubdate=set_date_tzinfo(
item.date, self.settings.get('TIMEZONE', None)),
pubdate=set_date_tzinfo(
item.modified if hasattr(item, 'modified') else None,
self.settings.get('TIMEZONE', None)))
updateddate=set_date_tzinfo(
item.modified, self.settings.get('TIMEZONE', None)
) if hasattr(item, 'modified') else None)
def _open_w(self, filename, encoding, override=False):
"""Open a file to write some content to it.