mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 06:42:16 +00:00
Show error message instead of 500 when reddit is unavailable
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user