Hotfix: LinterCheckRun rescue within each loop

This commit is contained in:
Sebastian Serth
2020-10-27 01:11:31 +01:00
parent 8294eecba9
commit c2db083529

View File

@ -22,9 +22,9 @@ class LinterCheckRun < ApplicationRecord
testrun: testrun,
file: file
)
rescue ActiveRecord::RecordInvalid
# Something bad happened. Probably, the RegEx in lib/py_lint_adapter.rb didn't work.
Raven.extra_context(testrun: testrun, linter_result: linter_result)
end
rescue ActiveRecord::RecordInvalid
# Something bad happened. Probably, the RegEx in lib/py_lint_adapter.rb didn't work.
Raven.extra_context(testrun: testrun, linter_result: linter_result)
end
end