Permalink
Browse files

Hard rescue of column fetching (api's seem to change alot)

  • Loading branch information...
quirkey committed May 12, 2009
1 parent 833d6c2 commit 6a59282465a3612abe32f195c5c25d1169de0ac5
Showing with 6 additions and 2 deletions.
  1. +6 −2 lib/columnlog/column.rb
View
@@ -65,8 +65,12 @@ def cache_for
def get(how_many = nil)
how_many ||= self.how_many
- cache.fetch(cache_key(how_many)) do
- app.get(how_many).compact
+ begin
+ cache.fetch(cache_key(how_many)) do
+ app.get(how_many).compact
+ end
+ rescue
+ []
end
end

0 comments on commit 6a59282

Please sign in to comment.