diff --git a/IPython/parallel/client/client.py b/IPython/parallel/client/client.py index a7c419f..31862dd 100644 --- a/IPython/parallel/client/client.py +++ b/IPython/parallel/client/client.py @@ -804,7 +804,7 @@ class Client(HasTraits): msg_type = msg['header']['msg_type'] handler = self._notification_handlers.get(msg_type, None) if handler is None: - raise Exception("Unhandled message type: %s"%msg.msg_type) + raise Exception("Unhandled message type: %s" % msg_type) else: handler(msg) idents,msg = self.session.recv(self._notification_socket, mode=zmq.NOBLOCK) @@ -818,7 +818,7 @@ class Client(HasTraits): msg_type = msg['header']['msg_type'] handler = self._queue_handlers.get(msg_type, None) if handler is None: - raise Exception("Unhandled message type: %s"%msg.msg_type) + raise Exception("Unhandled message type: %s" % msg_type) else: handler(msg) idents,msg = self.session.recv(sock, mode=zmq.NOBLOCK)