diff options
author | Alex Legler <a3li@gentoo.org> | 2012-02-28 13:27:24 +0100 |
---|---|---|
committer | Alex Legler <a3li@gentoo.org> | 2012-02-28 13:27:24 +0100 |
commit | 3ebb4138ce675441cdadc377eb0c6c6e1e146894 (patch) | |
tree | 03e2bf4abf77fb8c5206638ca3214ad0e70eb8db | |
parent | Replace hardcoded status.json location with app root (diff) | |
download | infra-status-3ebb4138ce675441cdadc377eb0c6c6e1e146894.tar.gz infra-status-3ebb4138ce675441cdadc377eb0c6c6e1e146894.tar.bz2 infra-status-3ebb4138ce675441cdadc377eb0c6c6e1e146894.zip |
Render an empty document when there are no items available.
This still sucks but is better than the exception.
-rw-r--r-- | content/atom.xml.erb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/content/atom.xml.erb b/content/atom.xml.erb index 6439efb..5087d08 100644 --- a/content/atom.xml.erb +++ b/content/atom.xml.erb @@ -4,4 +4,9 @@ author_name: Gentoo Infrastructure Team author_uri: http://infra-status.gentoo.org/ is_hidden: true --- -<%= atom_feed(:content_proc => feed_proc, :articles => feed_articles) %> +<%= begin + atom_feed(:content_proc => feed_proc, :articles => feed_articles) + rescue RuntimeError + "" + end +%> |