Skip to content
This repository has been archived by the owner on May 16, 2019. It is now read-only.

Commit

Permalink
Fix nil error when no DNS addresses are found for host (mastodon#9379)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gargron committed Nov 30, 2018
1 parent 49f49cf commit cc0c167
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/lib/request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,11 @@ def open(host, *args)
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
Expand Down

0 comments on commit cc0c167

Please sign in to comment.