Catch both IndexError and TypeError (tests now pass with numpy).
Catch both IndexError and TypeError (tests now pass with numpy).

Scondo/purepng,drj11/pypng,mnaberez/pypng,mnaberez/pypng,drj11/pypng,Scondo/purepng