Ajout try catch