customer edit try catch