Skip to content
Snippets Groups Projects
Unverified Commit f1fc0916 authored by Arnaud Levy's avatar Arnaud Levy Committed by GitHub
Browse files

Fix #1669 (#2018)

parent 3e4cbfb6
No related branches found
No related tags found
No related merge requests found
......@@ -75,7 +75,12 @@ class Communication::Website::GitFile < ApplicationRecord
def self.analyze_if_blob(object)
return unless object.is_a? ActiveStorage::Blob
object.analyze unless object.analyzed?
begin
object.analyze unless object.analyzed?
rescue
# https://github.com/osunyorg/admin/issues/1669
puts "Blob #{object} crashed during analysis"
end
end
def template_static
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment