FIX: return nil when RetrieveTitle.crawl fails (#16167)
This commit is contained in:
parent
02fa04e333
commit
ddde94f925
|
@ -8,6 +8,7 @@ module RetrieveTitle
|
|||
rescue Exception => ex
|
||||
raise if Rails.env.test?
|
||||
Rails.logger.error(ex)
|
||||
nil
|
||||
end
|
||||
|
||||
def self.extract_title(html, encoding = nil)
|
||||
|
|
Loading…
Reference in New Issue