mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: return nil when RetrieveTitle.crawl fails (#16167)
This commit is contained in:
@@ -8,6 +8,7 @@ module RetrieveTitle
|
|||||||
rescue Exception => ex
|
rescue Exception => ex
|
||||||
raise if Rails.env.test?
|
raise if Rails.env.test?
|
||||||
Rails.logger.error(ex)
|
Rails.logger.error(ex)
|
||||||
|
nil
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.extract_title(html, encoding = nil)
|
def self.extract_title(html, encoding = nil)
|
||||||
|
|||||||
Reference in New Issue
Block a user