Merge "Replace deprecated BaseException.message with six.text_type"

This commit is contained in:
Jenkins 2017-06-21 11:51:36 +00:00 committed by Gerrit Code Review
commit cd881c7177

View File

@ -17,6 +17,7 @@ import functools
import gettext
import inspect
import platform
import six
from oslo_log import log as logging
from oslo_utils import timeutils
@ -262,11 +263,7 @@ class IBMStorageProxy(object):
return "Status: '%s', Code: %s" % (
exception.status, exception.code)
try:
msg = exception.message
except AttributeError:
msg = exception
return msg
return six.text_type(exception)
def _get_driver_super(self):
"""Gets the IBM Storage Drivers super class