Remove unused rescue in SIRET form controller
This commit is contained in:
parent
2fc03e9079
commit
6b7d0ccb82
1 changed files with 0 additions and 3 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue