diff --git a/app/models/linter_check_run.rb b/app/models/linter_check_run.rb index 851130e8..c53ce92c 100644 --- a/app/models/linter_check_run.rb +++ b/app/models/linter_check_run.rb @@ -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