Skip to content
Snippets Groups Projects
Commit ca299329 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(Remote.__init__): Added the pre-formatted traceback to the base class

	constructor call.
parent 5ed2731c
No related branches found
No related tags found
No related merge requests found
...@@ -63,7 +63,8 @@ class Remote(Exception): ...@@ -63,7 +63,8 @@ class Remote(Exception):
self.exc_type, self.exc_value, tb = sys.exc_info() self.exc_type, self.exc_value, tb = sys.exc_info()
self.traceback = ''.join(traceback.format_exception( self.traceback = ''.join(traceback.format_exception(
self.exc_type, self.exc_value, tb)) 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(): def serialize():
"""Create a Remote exception, serialize it, and return the string. """Create a Remote exception, serialize it, and return the string.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment