Permalink
Browse files

Fixing bug in ipkernel.py related to msg_type refactoring.

  • Loading branch information...
1 parent ff292f9 commit c4eb82822dca65cc4a16275b335ac5bffc133d44 @ellisonbg committed Jul 14, 2011
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 c4eb828

Please sign in to comment.