Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

make all tests work on Ruby 1.9.1.

Timeout::Error is subclass of RuntimeError not SignalException
on Ruby 1.9.1.
  • Loading branch information...
commit 7f0ea1d12157da217740fc099e4f3dab9924ebb3 1 parent affbf7c
Kouhei Sutou kou authored chowells79 committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/openid/fetchers.rb
4 lib/openid/fetchers.rb
@@ -205,6 +205,8 @@ def fetch(url, body=nil, headers=nil, redirect_limit=REDIRECT_LIMIT)
conn.request_post(url.request_uri, body, headers)
+ rescue Timeout::Error => why
+ raise FetchingError, "Error fetching #{url}: #{why}"
rescue RuntimeError => why
raise why
rescue OpenSSL::SSL::SSLError => why
@@ -212,8 +214,6 @@ def fetch(url, body=nil, headers=nil, redirect_limit=REDIRECT_LIMIT)
rescue FetchingError => why
raise why
rescue Exception => why
- # Things we've caught here include a Timeout::Error, which descends
- # from SignalException.
raise FetchingError, "Error fetching #{url}: #{why}"
Please sign in to comment.
Something went wrong with that request. Please try again.