mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 22:43:33 +08:00
FIX: exception which was meant to be ignored and logged was failing
Thanks to Darix!
This commit is contained in:
@ -50,7 +50,7 @@ class DiscourseIpInfo
|
|||||||
Rails.logger.warn("MaxMindDB (#{filepath}) could not be found: #{e}")
|
Rails.logger.warn("MaxMindDB (#{filepath}) could not be found: #{e}")
|
||||||
nil
|
nil
|
||||||
rescue => e
|
rescue => e
|
||||||
Discourse.warn_exception(e, "MaxMindDB (#{filepath}) could not be loaded.")
|
Discourse.warn_exception(e, message: "MaxMindDB (#{filepath}) could not be loaded.")
|
||||||
nil
|
nil
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user