Log exceptions as exceptions
Merge remote-tracking branch 'parent/py3' into py3