Created
December 10, 2009 16:09
-
-
Save hakobe/253418 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/examples/tig.rb b/examples/tig.rb | |
| index 7539609..2d597f5 100755 | |
| --- a/examples/tig.rb | |
| +++ b/examples/tig.rb | |
| @@ -1736,7 +1736,8 @@ class TwitterIrcGateway < Net::IRC::Server::Session | |
| r = [] | |
| cursor = -1 | |
| 1.upto(limit) do |num| | |
| - ret = api(path, { :cursor => cursor }, { :authenticate => authenticate }) | |
| + # next_cursor にアクセスするとNot found が返ってくることがあるので,その時はbreak | |
| + ret = api(path, { :cursor => cursor }, { :authenticate => authenticate }) rescue break | |
| arr = ret[name.to_s] | |
| r.concat arr | |
| cursor = ret[:next_cursor] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment