Skip to content
This repository was archived by the owner on Jul 24, 2023. It is now read-only.

Commit d4d7946

Browse files
committed
Rescue from Yadis::XRI::XRIHTTPError on discovery
The error is explicitly thrown on any fetch errors by Yadis::XRI::ProxyResolve#query (including for bad URIs, network issues, invalid responses, ...)
1 parent b7b3316 commit d4d7946

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/openid/consumer/discovery.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ def self.discover_xri(iname)
450450
services.each { |service_element|
451451
endpoints += flt.get_service_endpoints(iname, service_element)
452452
}
453-
rescue Yadis::XRDSError => why
453+
rescue Yadis::XRDSError, Yadis::XRI::XRIHTTPError => why
454454
Util.log('xrds error on ' + iname + ': ' + why.to_s)
455455
end
456456

0 commit comments

Comments
 (0)