Try to standardize retrieval of an Exception's description
Removes the use of exc.args[0] and exc.format_message() to retrieve
message strings from exceptions in favor of using six.text_type() to
maintain compatibility between python 2 and 3. Or through normal type
coercion. Adds a __unicode__ method to make things more consistent.
Reviewed: https:/ /review. openstack. org/217434 /git.openstack. org/cgit/ openstack/ ironic/ commit/ ?id=fe2c6207f3c a385e9904d591d0 64232beb3514f1
Committed: https:/
Submitter: Jenkins
Branch: master
commit fe2c6207f3ca385 e9904d591d06423 2beb3514f1
Author: Clif Houck <email address hidden>
Date: Wed Aug 26 18:05:30 2015 -0500
Try to standardize retrieval of an Exception's description
Removes the use of exc.args[0] and exc.format_ message( ) to retrieve
message strings from exceptions in favor of using six.text_type() to
maintain compatibility between python 2 and 3. Or through normal type
coercion. Adds a __unicode__ method to make things more consistent.
Closes-Bug: #1493233
Change-Id: I033c00675a62c0 ecaf3e3c2e0bed8 b4f79a134e1