浏览代码
Fix nil error when no DNS addresses are found for host (#9379)
master
Eugen Rochko
5 年前
committed by
GitHub
找不到此签名对应的密钥
GPG 密钥 ID: 4AEE18F83AFDEB23
共有
1 个文件被更改,包括
5 次插入 和
1 次删除
-
app/lib/request.rb
|
|
@@ -163,7 +163,11 @@ class Request |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
raise outer_e if outer_e |
|
|
|
if outer_e |
|
|
|
raise outer_e |
|
|
|
else |
|
|
|
raise SocketError, "No address for #{host}" |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
alias new open |
|
|
|