Fix DeprecationWarning when using BaseException.message
Some of the nova unit tests are getting:
"DeprecationWarning: BaseException.message has been deprecated as of Python 2.6 "
when referring to the message attribute of the exception.
Change to use "six.text_type(exception)" to avoid these warning.
Reviewed: https:/ /review. openstack. org/207560 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=59f6abfa570 91fd723aa6b1f9d c5ac028c0269c4
Committed: https:/
Submitter: Jenkins
Branch: master
commit 59f6abfa57091fd 723aa6b1f9dc5ac 028c0269c4
Author: Chuck Carmack <email address hidden>
Date: Thu Jul 30 17:45:24 2015 +0000
Fix DeprecationWarning when using BaseException. message
Some of the nova unit tests are getting: nWarning: BaseException. message has been deprecated as of Python 2.6 " type(exception) " to avoid these warning.
"Deprecatio
when referring to the message attribute of the exception.
Change to use "six.text_
Change-Id: I6f2c83a66306cd accb95a7be21214 f15969b6947
Closes-Bug: 1479066