Remove unused rescue in SIRET form controller

This commit is contained in:
Paul Chavard 2018-03-27 11:28:12 +02:00
parent 2fc03e9079
commit 6b7d0ccb82

View file

@ -124,9 +124,6 @@ class Users::DossiersController < UsersController
else
render '/dossiers/new_siret', formats: 'js'
end
rescue RestClient::ResourceNotFound, RestClient::BadRequest
errors_valid_siret
rescue ActiveRecord::RecordNotFound
flash.alert = t('errors.messages.dossier_not_found')
redirect_to url_for users_dossiers_path