From 4bf59cfe5199a13a0506b1cf40fc12f24423e5cc Mon Sep 17 00:00:00 2001 From: chenke Date: Thu, 16 Apr 2020 15:59:52 +0800 Subject: [PATCH] Remove six[1] Change-Id: I2738db925d650af5921b77d0315ec0a8d4ee985b --- watcher/notifications/exception.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/watcher/notifications/exception.py b/watcher/notifications/exception.py index 7de5e09b0..fccc8b6b5 100644 --- a/watcher/notifications/exception.py +++ b/watcher/notifications/exception.py @@ -13,8 +13,6 @@ import inspect import sys -import six - from watcher.notifications import base as notificationbase from watcher.objects import base from watcher.objects import fields as wfields @@ -42,7 +40,7 @@ class ExceptionPayload(notificationbase.NotificationPayloadBase): function_name=trace[3], module_name=inspect.getmodule(trace[0]).__name__, exception=fault.__class__.__name__, - exception_message=six.text_type(fault)) + exception_message=str(fault)) @notificationbase.notification_sample('infra-optim-exception.json')