Do a try excpet to raise an error when get pp

Raise error in get political party