Catching exception for invalid family name