Every time you catch NumberFormatException or ValueError after Integer.parseInt() or int(), a kitten dies. Check the value beforehand.