>>> from keystone import exception >>> e = exception.Error('what?') >>> import six >>> six.text_type(e) u'what?' >>> type(e) >>> type(six.text_type(e)) >>> import logging >>> logging.exception(six.text_type(e)) ERROR:root:what? None