Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixing bug in ipkernel.py related to msg_type refactoring.

  • Loading branch information...
commit c4eb82822dca65cc4a16275b335ac5bffc133d44 1 parent ff292f9
@ellisonbg authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 IPython/zmq/ipkernel.py
View
5 IPython/zmq/ipkernel.py
@@ -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__)
Please sign in to comment.
Something went wrong with that request. Please try again.