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 else
render '/dossiers/new_siret', formats: 'js' render '/dossiers/new_siret', formats: 'js'
end end
rescue RestClient::ResourceNotFound, RestClient::BadRequest
errors_valid_siret
rescue ActiveRecord::RecordNotFound rescue ActiveRecord::RecordNotFound
flash.alert = t('errors.messages.dossier_not_found') flash.alert = t('errors.messages.dossier_not_found')
redirect_to url_for users_dossiers_path redirect_to url_for users_dossiers_path