formula_versions: try to ignore errors on formula load

This commit is contained in:
Bo Anderson 2021-04-13 17:41:20 +01:00
parent 49285fb88c
commit ac87404c34
No known key found for this signature in database
GPG Key ID: 3DB94E204E137D65

View File

@ -45,7 +45,7 @@ class FormulaVersions
yield @formula_at_revision[rev] ||= begin
contents = file_contents_at_revision(rev)
nostdout { Formulary.from_contents(name, path, contents) }
nostdout { Formulary.from_contents(name, path, contents, ignore_errors: true) }
end
rescue *IGNORED_EXCEPTIONS => e
# We rescue these so that we can skip bad versions and