From efa301c1000ec3f4052da4effd0ccd19af546a33 Mon Sep 17 00:00:00 2001 From: Michael James Date: Fri, 5 Oct 2018 17:14:32 -0600 Subject: [PATCH] Fix returned retVal encoding in SerializableExceptionWrapper --- .../common/serialization/SerializableExceptionWrapper.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/serialization/SerializableExceptionWrapper.py b/dynamicserialize/dstypes/com/raytheon/uf/common/serialization/SerializableExceptionWrapper.py index 8ae5157..b0d3299 100644 --- a/dynamicserialize/dstypes/com/raytheon/uf/common/serialization/SerializableExceptionWrapper.py +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/serialization/SerializableExceptionWrapper.py @@ -1,4 +1,3 @@ - # File auto-generated against equivalent DynamicSerialize Java class and # modified. # @@ -7,6 +6,7 @@ # Date Ticket# Engineer Description # ------------ ---------- ----------- -------------------------- # 2015-02-27 4174 nabowle Output full stacktrace. +# 2018-10-05 mjames@ucar Fix returned retVal encoding. # class SerializableExceptionWrapper(object): @@ -23,12 +23,12 @@ class SerializableExceptionWrapper(object): def __repr__(self): if not self.message: self.message = '' - retVal = b"" + self.exceptionClass + b" exception thrown: " + self.message + b"\n" + retVal = "" + str(self.exceptionClass) + " exception thrown: " + str(self.message) + "\n" for element in self.stackTrace: - retVal += b"\tat " + str(element).encode('UTF-8') + b"\n" + retVal += "\tat " + str(element) + "\n" if self.wrapper: - retVal += b"Caused by: " + self.wrapper.__repr__().encode('UTF-8') + retVal += "Caused by: " + self.wrapper.__repr__() return str(retVal) def getStackTrace(self):