From 4e5305cb676abf05816e813d113ced06585625b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Hanol?= Date: Sat, 25 May 2019 00:14:54 +0200 Subject: [PATCH] FIX: catch proper exception --- lib/discourse_ip_info.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/discourse_ip_info.rb b/lib/discourse_ip_info.rb index ad04661c482..74abbbd2509 100644 --- a/lib/discourse_ip_info.rb +++ b/lib/discourse_ip_info.rb @@ -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