Fix nil error when no DNS addresses are found for host (#9379)
parent
cb7ecf5df8
commit
8c7ba82dc1
|
@ -163,7 +163,11 @@ class Request
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
raise outer_e if outer_e
|
if outer_e
|
||||||
|
raise outer_e
|
||||||
|
else
|
||||||
|
raise SocketError, "No address for #{host}"
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
alias new open
|
alias new open
|
||||||
|
|
Loading…
Reference in New Issue