Github user dgingrich commented on the issue:
https://github.com/apache/spark/pull/16845
Another alternate is to use [`six`](https://pythonhosted.org/six/). In the
standard library `text_type`) works:
```python
# Python2.6
>>> import six
>>> six.text_type(Exception(u"unicöde"))
u'unic\xf6de'
```
I also submitted a patch to six to add an `exception_message` helper
(https://github.com/benjaminp/six/pull/177) but I don't know if it will be
accepted since `Exception.message` has been deprecated since 2.6.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]