From 5dc7b260a53744b9dba99ef81565562535826b79 2013-01-11 18:47:51 From: Min RK Date: 2013-01-11 18:47:51 Subject: [PATCH] Merge pull request #2773 from dhirschfeld/typo-fix Fixed minor typo causing AttributeError to be thrown. --- diff --git a/IPython/parallel/client/client.py b/IPython/parallel/client/client.py index 743629e..5fe57d4 100644 --- a/IPython/parallel/client/client.py +++ b/IPython/parallel/client/client.py @@ -797,7 +797,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) @@ -811,7 +811,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)