fix try-catch format