Agregue el bloque try and catch