From a85cdf1ec92bc995daaff3657b3b4abaace6f180 Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Sat, 29 Dec 2012 22:45:45 +0100 Subject: Improved error response. --- source/templates/unread.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source/templates/unread.html') 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 += """
\nMark articles as read\n""" + # List unread articles of a feed else: try: feed = mongo.get_feed(feed_id) except: - error("This feed do not exists.") + return "

This feed do not exists.

" html += """

Unread article(s) of the feed %s


""" % (feed_id, feed["feed_title"]) -- cgit