mirror of
https://github.com/mastodon/mastodon.git
synced 2024-11-08 08:44:27 +00:00
Fix nil error when no DNS addresses are found for host (#9379)
This commit is contained in:
parent
8c8575db74
commit
4cc9ada971
|
@ -177,7 +177,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…
Reference in a new issue