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)