Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit 6a59282465a3612abe32f195c5c25d1169de0ac5 1 parent 833d6c2
@quirkey authored
Showing with 6 additions and 2 deletions.
  1. +6 −2 lib/columnlog/column.rb
View
8 lib/columnlog/column.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.