From f0cb45536c2e25eee6f9504603823c0d99a503e3 Mon Sep 17 00:00:00 2001 From: Stefan Karpinski Date: Wed, 24 Jul 2013 21:03:57 -0700 Subject: [PATCH] handle empty metadata in pyout messages more gracefully. --- IPython/html/static/notebook/js/outputarea.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/IPython/html/static/notebook/js/outputarea.js b/IPython/html/static/notebook/js/outputarea.js index 8d14a751c..5ed815229 100644 --- a/IPython/html/static/notebook/js/outputarea.js +++ b/IPython/html/static/notebook/js/outputarea.js @@ -255,6 +255,9 @@ var IPython = (function (IPython) { OutputArea.prototype.convert_mime_types = function (json, data) { + if (data === undefined) { + return json; + } if (data['text/plain'] !== undefined) { json.text = data['text/plain']; }