From ca29932928768e71b1c721b7ae0447c24714d984 Mon Sep 17 00:00:00 2001
From: Per Cederqvist <ceder@lysator.liu.se>
Date: Sun, 26 Oct 2003 16:20:27 +0000
Subject: [PATCH] (Remote.__init__): Added the pre-formatted traceback to the
 base class 	constructor call.

---
 pcl_expect/remote_exception.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/pcl_expect/remote_exception.py b/pcl_expect/remote_exception.py
index 0ad0cf3..1282fa5 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.
-- 
GitLab