mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 19:03:45 +08:00
FIX: catch proper exception
This commit is contained in:
parent
5bfeef7705
commit
4e5305cb67
|
@ -38,7 +38,7 @@ class DiscourseIpInfo
|
|||
|
||||
path = gz_file.path.sub(/\.gz\z/, "")
|
||||
FileUtils.mv(path, mmdb_path(name))
|
||||
rescue HTTPError => e
|
||||
rescue OpenURI::HTTPError => e
|
||||
Rails.logger.warn("MaxMindDB (#{name}) could not be downloaded: #{e}")
|
||||
end
|
||||
ensure
|
||||
|
|
Loading…
Reference in New Issue
Block a user