Skip to content
This repository has been archived by the owner on Apr 11, 2023. It is now read-only.

API Down Bug #12

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions lib/tumblr/post.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@ def self.count(options = {})
#puts response['tumblr']['posts'].to_yaml
#puts "*****"
end
response['tumblr']['posts']['total'].to_i
begin
response['tumblr']['posts']['total'].to_i
rescue
0
end

end

Expand Down Expand Up @@ -122,4 +126,4 @@ def self.process_options(*args)
return options
end
end
end
end