FIX: exception which was meant to be ignored and logged was failing

FIX: exception which was meant to be ignored and logged was failing

Thanks to Darix!

diff --git a/lib/discourse_ip_info.rb b/lib/discourse_ip_info.rb
index 9daae97..75853c1 100644
--- a/lib/discourse_ip_info.rb
+++ b/lib/discourse_ip_info.rb
@@ -50,7 +50,7 @@ class DiscourseIpInfo
       Rails.logger.warn("MaxMindDB (#{filepath}) could not be found: #{e}")
       nil
     rescue => e
-      Discourse.warn_exception(e, "MaxMindDB (#{filepath}) could not be loaded.")
+      Discourse.warn_exception(e, message: "MaxMindDB (#{filepath}) could not be loaded.")
       nil
     end
   end

GitHub sha: 769501c6

1 Like

This commit has been mentioned on Discourse Meta. There might be relevant details there: