Adding try catch when getting the partner