From 13cbe53ce71d4b8f6a623edfd1622c31152bde0a Mon Sep 17 00:00:00 2001
From: Yusei Tahara <yusei@nexedi.com>
Date: Mon, 20 Feb 2017 10:14:05 +0900
Subject: [PATCH] Jupyter: Fix a bug. getErrorMessageForException did not
 support new internal structure.

---
 .../portal_components/extension.erp5.JupyterCompile.py         | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/bt5/erp5_data_notebook/ExtensionTemplateItem/portal_components/extension.erp5.JupyterCompile.py b/bt5/erp5_data_notebook/ExtensionTemplateItem/portal_components/extension.erp5.JupyterCompile.py
index 3eeb5b86cb..14460893ce 100644
--- a/bt5/erp5_data_notebook/ExtensionTemplateItem/portal_components/extension.erp5.JupyterCompile.py
+++ b/bt5/erp5_data_notebook/ExtensionTemplateItem/portal_components/extension.erp5.JupyterCompile.py
@@ -938,6 +938,8 @@ def getErrorMessageForException(self, exception, notebook_context):
   return {
     'status': 'error',
     'result_string': None,
+    'print_result': None,
+    'displayhook_result': None,
     'notebook_context': notebook_context,
     'mime_type': 'text/plain',
     'evalue': str(value),
@@ -1146,4 +1148,3 @@ def erp5PivotTableUI(self, df):
   iframe_host = self.REQUEST['HTTP_X_FORWARDED_HOST'].split(',')[0]
   url = "https://%s/erp5/Base_displayPivotTableFrame?key=%s" % (iframe_host, key)
   return IFrame(src=url, width='100%', height='500')
-
-- 
2.30.9