Don't crash when external feeds miss timestamp

Fix #44.
This commit is contained in:
Guillaume Ayoub 2019-01-15 19:23:43 +01:00
parent 050de053ef
commit 16894c0f94

View File

@ -9,7 +9,9 @@
<title><![CDATA[ {% if entry.feed %}[{{ entry.feed | safe }}]{% endif %} {{ entry.content.title | safe }} ]]></title>
<description><![CDATA[ {{ (entry.content.description or entry.content.summary) | safe }} ]]></description>
<link>{{ entry.content.link }}</link>
<pubDate>{{ entry.content.timestamp | rfc822_datetime }}</pubDate>
{% if entry.content.timestamp %}
<pubDate>{{ entry.content.timestamp | rfc822_datetime }}</pubDate>
{% endif %}
</item>
{% endfor %}
</channel>