formula_versions: also silence stderr.

We already stop old formula versions printing stdout but this also stops
them printing on stderr for e.g. old deprecation warnings.
This commit is contained in:
Mike McQuaid 2016-08-11 14:08:37 +01:00
parent 24b5db5367
commit 0b8eab8dac

View File

@ -34,7 +34,7 @@ class FormulaVersions
contents = file_contents_at_revision(rev) contents = file_contents_at_revision(rev)
begin begin
nostdout { yield Formulary.from_contents(name, path, contents) } shutup { yield Formulary.from_contents(name, path, contents) }
rescue *IGNORED_EXCEPTIONS => e rescue *IGNORED_EXCEPTIONS => e
# We rescue these so that we can skip bad versions and # We rescue these so that we can skip bad versions and
# continue walking the history # continue walking the history