Skip to content

Commit

Permalink
Fix: handle all errors
Browse files Browse the repository at this point in the history
Resolves #9
  • Loading branch information
till committed Feb 24, 2020
1 parent bfac4f6 commit f027681
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/apt/spy2.rb
Expand Up @@ -99,7 +99,8 @@ def filter(mirrors, output = true)
working_mirrors << mirror
rescue OpenURI::HTTPError
data["status"] = "broken"
rescue Errno::ECONNREFUSED
rescue
# this is a catch-all for everything else
data["status"] = "down"
end

Expand Down Expand Up @@ -150,4 +151,4 @@ def use_launchpad?(options)

return true
end
end
end

0 comments on commit f027681

Please sign in to comment.