aboutsummaryrefslogtreecommitdiff
path: root/source/templates/unread.html
diff options
context:
space:
mode:
authorCédric Bonhomme <kimble.mandel@gmail.com>2012-12-29 22:45:45 +0100
committerCédric Bonhomme <kimble.mandel@gmail.com>2012-12-29 22:45:45 +0100
commita85cdf1ec92bc995daaff3657b3b4abaace6f180 (patch)
tree4cc5eaea01d5a15fe27ac1e6194527fa23ec0904 /source/templates/unread.html
parentadd_feed now uses templated. (diff)
downloadnewspipe-a85cdf1ec92bc995daaff3657b3b4abaace6f180.tar.gz
newspipe-a85cdf1ec92bc995daaff3657b3b4abaace6f180.tar.bz2
newspipe-a85cdf1ec92bc995daaff3657b3b4abaace6f180.zip
Improved error response.
Diffstat (limited to 'source/templates/unread.html')
-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