Changed getLocData to handle ValueError exception