diff --git a/lib/rack/openid.rb b/lib/rack/openid.rb index 3784498..9875aee 100644 --- a/lib/rack/openid.rb +++ b/lib/rack/openid.rb @@ -134,7 +134,7 @@ def begin_authentication(env, qs) url = open_id_redirect_url(req, oidreq, params) return redirect_to(url) - rescue ::OpenID::OpenIDError, Timeout::Error => e + rescue ::OpenID::OpenIDError, ::Timeout::Error => e env[RESPONSE] = MissingResponse.new return @app.call(env) end @@ -302,7 +302,7 @@ def default_store def timeout_protection_from_identity_server yield - rescue Timeout::Error + rescue ::Timeout::Error TimeoutResponse.new end end