From 7095b9eb8789a487e1892e4d3f30c20bc3642721 Mon Sep 17 00:00:00 2001 From: Jason Grout Date: Sat, 7 Jul 2012 12:43:41 -0500 Subject: [PATCH] Make top-level metadata dictionary not optional. --- IPython/frontend/html/notebook/static/js/kernel.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IPython/frontend/html/notebook/static/js/kernel.js b/IPython/frontend/html/notebook/static/js/kernel.js index ea80e9ed4..e446d5cba 100644 --- a/IPython/frontend/html/notebook/static/js/kernel.js +++ b/IPython/frontend/html/notebook/static/js/kernel.js @@ -351,7 +351,7 @@ var IPython = (function (IPython) { var reply = $.parseJSON(e.data); var content = reply.content; var msg_type = reply.header.msg_type; - var metadata = reply.metadata || {}; + var metadata = reply.metadata; var callbacks = this.get_callbacks_for_msg(reply.parent_header.msg_id); if (msg_type !== 'status' && callbacks === undefined) { // Message not from one of this notebook's cells and there are no