It will catch it when encrypting but when decrypting it will just raise ValueError("Decryption failed"). I originally added the check to give some info as to why the decryption might not be working (this is safe info to provide since it's implicit in the length of the ciphertext), but if people would prefer it to be removed I can certainly do that.