Browse Source

Fix nil error when no DNS addresses are found for host (#9379)

pull/4/head
Eugen Rochko 5 years ago
committed by GitHub
parent
commit
43c311b3a1
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      app/lib/request.rb

+ 5
- 1
app/lib/request.rb View File

@ -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

Loading…
Cancel
Save