Permalink
Browse files

Fixing bug in ipkernel.py related to msg_type refactoring.

  • Loading branch information...
ellisonbg committed Jul 14, 2011
1 parent e5d9e2c commit e4a965d25084978ec4786a02fa44809361072c56
Showing with 3 additions and 2 deletions.
  1. +3 −2 IPython/zmq/ipkernel.py
View
@@ -122,10 +122,11 @@ def do_one_iteration(self):
"""Do one iteration of the kernel's evaluation loop.
"""
ident,msg = self.session.recv(self.shell_socket, zmq.NOBLOCK)
- msg_type = msg['header']['msg_type']
if msg is None:
return
-
+
+ msg_type = msg['header']['msg_type']
+
# This assert will raise in versions of zeromq 2.0.7 and lesser.
# We now require 2.0.8 or above, so we can uncomment for safety.
# print(ident,msg, file=sys.__stdout__)

0 comments on commit e4a965d

Please sign in to comment.