Show More
@@ -797,7 +797,7 class Client(HasTraits): | |||||
797 | msg_type = msg['header']['msg_type'] |
|
797 | msg_type = msg['header']['msg_type'] | |
798 | handler = self._notification_handlers.get(msg_type, None) |
|
798 | handler = self._notification_handlers.get(msg_type, None) | |
799 | if handler is None: |
|
799 | if handler is None: | |
800 |
raise Exception("Unhandled message type: %s"% |
|
800 | raise Exception("Unhandled message type: %s" % msg_type) | |
801 | else: |
|
801 | else: | |
802 | handler(msg) |
|
802 | handler(msg) | |
803 | idents,msg = self.session.recv(self._notification_socket, mode=zmq.NOBLOCK) |
|
803 | idents,msg = self.session.recv(self._notification_socket, mode=zmq.NOBLOCK) | |
@@ -811,7 +811,7 class Client(HasTraits): | |||||
811 | msg_type = msg['header']['msg_type'] |
|
811 | msg_type = msg['header']['msg_type'] | |
812 | handler = self._queue_handlers.get(msg_type, None) |
|
812 | handler = self._queue_handlers.get(msg_type, None) | |
813 | if handler is None: |
|
813 | if handler is None: | |
814 |
raise Exception("Unhandled message type: %s"% |
|
814 | raise Exception("Unhandled message type: %s" % msg_type) | |
815 | else: |
|
815 | else: | |
816 | handler(msg) |
|
816 | handler(msg) | |
817 | idents,msg = self.session.recv(sock, mode=zmq.NOBLOCK) |
|
817 | idents,msg = self.session.recv(sock, mode=zmq.NOBLOCK) |
General Comments 0
You need to be logged in to leave comments.
Login now