From 8a65fafb47712bd4aef9cb80eb9bbe8627ce0e1c Mon Sep 17 00:00:00 2001 From: xuweibj Date: Wed, 27 Mar 2019 03:43:45 -0400 Subject: [PATCH] support python3 update exceptions function code --- xCAT-openbmc-py/lib/python/agent/common/exceptions.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xCAT-openbmc-py/lib/python/agent/common/exceptions.py b/xCAT-openbmc-py/lib/python/agent/common/exceptions.py index 88e80e59a..ba135d177 100644 --- a/xCAT-openbmc-py/lib/python/agent/common/exceptions.py +++ b/xCAT-openbmc-py/lib/python/agent/common/exceptions.py @@ -3,10 +3,12 @@ class SelfServerException(Exception) : def __init__(self, message, detail_msg= "", host_and_port="") : super(Exception, self).__init__(message) + self.message = message self.host_and_port = host_and_port self.detail_msg = detail_msg class SelfClientException(Exception) : def __init__(self, message, code) : super(Exception, self).__init__(message) + self.message = message self.code = code