no sentry report when error 400 for exercices

This commit is contained in:
Christophe Robillard 2020-06-11 18:16:19 +02:00
parent 51c0c83860
commit b90513f456
2 changed files with 3 additions and 4 deletions

View file

@ -1,4 +1,7 @@
class ApiEntreprise::ExercicesJob < ApiEntreprise::Job
rescue_from(ApiEntreprise::API::BadFormatRequest) do |exception|
end
def perform(etablissement_id, procedure_id)
etablissement = Etablissement.find(etablissement_id)
etablissement_params = ApiEntreprise::ExercicesAdapter.new(etablissement.siret, procedure_id).to_params

View file

@ -13,10 +13,6 @@ class ApplicationJob < ActiveJob::Base
error(self, exception)
end
rescue_from(ApiEntreprise::API::BadFormatRequest) do |exception|
error(self, exception)
end
def error(job, exception)
Raven.capture_exception(exception)
end