From 65bfa603a1fdfc413c58dcf548136535352cdee8 2011-04-08 00:38:12 From: MinRK Date: 2011-04-08 00:38:12 Subject: [PATCH] str(etype) --- diff --git a/IPython/zmq/parallel/streamsession.py b/IPython/zmq/parallel/streamsession.py index dd8768a..5baa468 100644 --- a/IPython/zmq/parallel/streamsession.py +++ b/IPython/zmq/parallel/streamsession.py @@ -66,7 +66,7 @@ def wrap_exception(): exc_content = { 'status' : 'error', 'traceback' : [ line.encode('utf8') for line in tb ], - 'etype' : etype.encode('utf8'), + 'etype' : str(etype).encode('utf8'), 'evalue' : evalue.encode('utf8') } return exc_content