Skip to content

Commit 7475e10

Browse files
committed
Don't send execution_count with iopub error message
1 parent dc01bdc commit 7475e10

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

bash_kernel/kernel.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,10 +161,14 @@ def do_execute(self, code, silent, store_history=True,
161161
exitcode = 1
162162

163163
if exitcode:
164-
error_content = {'execution_count': self.execution_count,
165-
'ename': '', 'evalue': str(exitcode), 'traceback': []}
166-
164+
error_content = {
165+
'ename': '',
166+
'evalue': str(exitcode),
167+
'traceback': []
168+
}
167169
self.send_response(self.iopub_socket, 'error', error_content)
170+
171+
error_content['execution_count'] = self.execution_count
168172
error_content['status'] = 'error'
169173
return error_content
170174
else:

0 commit comments

Comments
 (0)