diff --git a/pcl_expect/remote_exception.py b/pcl_expect/remote_exception.py index 0ad0cf343e9c29fa2ec5b9e1ca5c686816011b55..1282fa597a00ac5f1a371bb77e7f3869ca31db10 100644 --- a/pcl_expect/remote_exception.py +++ b/pcl_expect/remote_exception.py @@ -63,7 +63,8 @@ class Remote(Exception): self.exc_type, self.exc_value, tb = sys.exc_info() self.traceback = ''.join(traceback.format_exception( self.exc_type, self.exc_value, tb)) - Exception.__init__(self, self.exc_type.__name__, str(self.exc_value)) + Exception.__init__(self, self.exc_type.__name__, + str(self.exc_value), self.traceback) def serialize(): """Create a Remote exception, serialize it, and return the string.