aboutsummaryrefslogtreecommitdiff
path: root/source/templates
diff options
context:
space:
mode:
Diffstat (limited to 'source/templates')
-rw-r--r--source/templates/unread.html3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/templates/unread.html b/source/templates/unread.html
index 32201531..d37d3034 100644
--- a/source/templates/unread.html
+++ b/source/templates/unread.html
@@ -42,12 +42,13 @@ import utils
(feed["feed_id"],)
html += """<hr />\n<a href="/mark_as_read/">Mark articles as read</a>\n"""
+
# List unread articles of a feed
else:
try:
feed = mongo.get_feed(feed_id)
except:
- error("This feed do not exists.")
+ return "<p>This feed do not exists.</p>"
html += """<h1>Unread article(s) of the feed <a href="/articles/%s">%s</a></h1>
<br />""" % (feed_id, feed["feed_title"])
bgstack15