Show error message instead of 500 when reddit is unavailable

This commit is contained in:
2010-05-16 18:32:31 +01:00
parent 999c642dbe
commit fc0dfd8f2c
2 changed files with 9 additions and 1 deletions

View File

@@ -74,6 +74,9 @@
<h3>Reddit Posts</h3>
<ul>
{% if reddit_error %}
<p><b>{{ reddit_error }}</b></p>
{% endif %}
{% for post in posts %}
{% ifnotequal post.kind 1 %}
<p><b><a href="http://reddit.com{{ post.permalink }}">{{ post.title }}</a></b> - (/r/{{ post.subreddit }})</p>