DEV: remove temporary rescue when downloading MaxMindDB

follow-up 8c8c925d1b
This commit is contained in:
Régis Hanol 2019-05-24 15:13:19 +02:00
parent 049561ac49
commit a51e2271af
1 changed files with 18 additions and 22 deletions

View File

@ -25,7 +25,6 @@ class DiscourseIpInfo
end
def self.mmdb_download(name)
begin
FileUtils.mkdir_p(path)
uri = URI("https://geolite.maxmind.com/download/geoip/database/#{name}.tar.gz")
@ -48,13 +47,10 @@ class DiscourseIpInfo
end
end
rescue => e
STDERR.puts("There was an error downloading MaxMindDB (#{name}): #{e}")
ensure
FileUtils.rm_rf(dest) if dest
FileUtils.rm(tar_gz_file) if tar_gz_file
end
end
def mmdb_load(filepath)
begin