Replace Exception.message with str(Exception)

In Python 3 message was removed. Converting to a string gives us the
same result.

Closes-Bug: #1782194
Change-Id: I88f4546e0f78ffce86be192d2c0e10dbaa8c5859
This commit is contained in:
Dougal Matthews 2018-07-17 12:27:58 +01:00
parent 1e7262de9f
commit 783e5336c2

View File

@ -18,11 +18,12 @@ import logging
import os
import tempfile
from tripleo_common.utils import tarball
import six
from swiftclient.service import SwiftError
from swiftclient.service import SwiftUploadObject
from tripleo_common.utils import tarball
LOG = logging.getLogger(__name__)
@ -49,7 +50,7 @@ def delete_container(swiftclient, name):
except ValueError as e:
# ValueError is raised when we can't find the container, which means
# that it's already deleted.
LOG.info(e.message)
LOG.info(six.text_type(e))
def download_container(swiftclient, container, dest):