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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

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)