From 35cf1891f3cd9efd2275e3a130a3364afc92e7ed Mon Sep 17 00:00:00 2001 From: "bhavani.cr" Date: Thu, 13 Jul 2017 16:22:03 +0530 Subject: [PATCH] Stop using deprecated 'message' attribute in Exception The 'message' attribute has been deprecated and removed from Python3. For more details, please check: https://www.python.org/dev/peps/pep-0352/ Change-Id: I152e79352705a3e43ce464a8f087b0e93f072035 --- swift/common/middleware/x_profile/html_viewer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/swift/common/middleware/x_profile/html_viewer.py b/swift/common/middleware/x_profile/html_viewer.py index 90a5ab87..b575c538 100644 --- a/swift/common/middleware/x_profile/html_viewer.py +++ b/swift/common/middleware/x_profile/html_viewer.py @@ -529,5 +529,5 @@ class HTMLViewer(object): -->' % (app_path, profile_id, nfls)) except Exception as ex: - html.append("Exception:" % ex.message) + html.append("Exception:" % str(ex)) return ''.join(html)