mirror of
https://framagit.org/tykayn/mastodon.git
synced 2023-08-25 08:33:12 +02:00
Fix nil error when no DNS addresses are found for host (#9379)
This commit is contained in:
parent
cb583ff355
commit
43c311b3a1
@ -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…
Reference in New Issue
Block a user