From f857a0a220be407d6c47df6fbf923853895c6556 2014-03-01 06:40:38 From: MinRK Date: 2014-03-01 06:40:38 Subject: [PATCH] clear _reply_content cache before using it Any exceptions raised in startup code could be interpreted as the first actual execution failing. --- diff --git a/IPython/kernel/zmq/ipkernel.py b/IPython/kernel/zmq/ipkernel.py index 8bfbb05..4fb257c 100755 --- a/IPython/kernel/zmq/ipkernel.py +++ b/IPython/kernel/zmq/ipkernel.py @@ -383,8 +383,9 @@ class Kernel(Configurable): self._publish_pyin(code, parent, shell.execution_count) reply_content = {} + # FIXME: the shell calls the exception handler itself. + shell._reply_content = None try: - # FIXME: the shell calls the exception handler itself. shell.run_cell(code, store_history=store_history, silent=silent) except: status = u'error'