A platform for community discussion. Free, open, simple.
FIX: catch proper exception
Régis Hanol4e5305cb676a
diff --git a/lib/discourse_ip_info.rb b/lib/discourse_ip_info.rbindex ad04661c482..74abbbd2509 100644--- a/lib/discourse_ip_info.rb+++ b/lib/discourse_ip_info.rb@@ -38,7 +38,7 @@ class DiscourseIpInfopath = gz_file.path.sub(/\.gz\z/, "")FileUtils.mv(path, mmdb_path(name))- rescue HTTPError => e+ rescue OpenURI::HTTPError => eRails.logger.warn("MaxMindDB (#{name}) could not be downloaded: #{e}")endensure