lib/license_scout/license.rb in license_scout-2.0.11 vs lib/license_scout/license.rb in license_scout-2.0.12

- old
+ new

@@ -105,10 +105,10 @@ new_url = raw_github_url(contents_url) begin LicenseScout::Log.debug("[license] Pulling license content for #{license_id} from #{new_url}") open(new_url).read - rescue OpenURI::HTTPError + rescue OpenURI::HTTPError, Errno::ECONNREFUSED LicenseScout::Log.warn("[license] Unable to download license for #{license_id} from #{new_url}") nil rescue RuntimeError => e if e.message =~ /redirection forbidden/ m = /redirection forbidden:\s+(.+)\s+->\s+(.+)/.match(e.message)