no sentry report when error 400 for exercices
This commit is contained in:
parent
51c0c83860
commit
b90513f456
2 changed files with 3 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue