##// END OF EJS Templates
Don't assume history request succeeded...
MinRK -
Show More
@@ -174,7 +174,11 b' class IPythonWidget(FrontendWidget):'
174 """ Implemented to handle history tail replies, which are only supported
174 """ Implemented to handle history tail replies, which are only supported
175 by the IPython kernel.
175 by the IPython kernel.
176 """
176 """
177 history_items = msg['content']['history']
177 content = msg['content']
178 if 'history' not in content:
179 self.log.error("History request failed: %r"%content)
180 return
181 history_items = content['history']
178 items = [ line.rstrip() for _, _, line in history_items ]
182 items = [ line.rstrip() for _, _, line in history_items ]
179 self._set_history(items)
183 self._set_history(items)
180
184
General Comments 0
You need to be logged in to leave comments. Login now