Adding partition check

I had the thought about mentioning the raises exception sentence, but decide not to put it in considering the raises information the line below the doc string.