lib/omniauth/strategies/oauth.rb in oa-oauth-0.2.1 vs lib/omniauth/strategies/oauth.rb in oa-oauth-0.2.2

- old
+ new

@@ -60,10 +60,10 @@ fail!(:timeout, e) rescue ::Net::HTTPFatalError => e fail!(:service_unavailable, e) rescue ::OAuth::Unauthorized => e fail!(:invalid_credentials, e) - rescue ::MultiJson::DecodeError => e + rescue ::NoMethodError, ::MultiJson::DecodeError => e fail!(:invalid_response, e) end def auth_hash OmniAuth::Utils.deep_merge(super, {