FIX: return nil when RetrieveTitle.crawl fails (#16167)

This commit is contained in:
Osama Sayegh
2022-03-11 23:53:10 +03:00
committed by GitHub
parent 02fa04e333
commit ddde94f925

View File

@@ -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)