mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 22:43:33 +08:00
FIX: catch proper exception
This commit is contained in:
@ -38,7 +38,7 @@ class DiscourseIpInfo
|
|||||||
|
|
||||||
path = gz_file.path.sub(/\.gz\z/, "")
|
path = gz_file.path.sub(/\.gz\z/, "")
|
||||||
FileUtils.mv(path, mmdb_path(name))
|
FileUtils.mv(path, mmdb_path(name))
|
||||||
rescue HTTPError => e
|
rescue OpenURI::HTTPError => e
|
||||||
Rails.logger.warn("MaxMindDB (#{name}) could not be downloaded: #{e}")
|
Rails.logger.warn("MaxMindDB (#{name}) could not be downloaded: #{e}")
|
||||||
end
|
end
|
||||||
ensure
|
ensure
|
||||||
|
Reference in New Issue
Block a user