Skip to content

A platform for community discussion. Free, open, simple.

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

Sam Saffron769501c63a2b
diff --git a/lib/discourse_ip_info.rb b/lib/discourse_ip_info.rb
index 9daae979e63..75853c10f20 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