py3: convert arbitrary exception object to byte string more reliably
Our exception types implement __bytes__(), which should be tried first. Do lossy encoding conversion as a last resort.
Please register or sign in to comment
Our exception types implement __bytes__(), which should be tried first. Do lossy encoding conversion as a last resort.