ajout try catch