[ios/atv2] - fix logging of python exceptions

same like #4221 for ios and atv2. Thx to @koying for finally figuring that one out :)