Skip to content
Snippets Groups Projects
Commit 1d5e497c authored by Yuya Nishihara's avatar Yuya Nishihara
Browse files

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.
parent 8626b445
Branches
Tags
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment