diff --git a/IPython/frontend/wx/wx_frontend.py b/IPython/frontend/wx/wx_frontend.py index b0a1b71..493f4c4 100644 --- a/IPython/frontend/wx/wx_frontend.py +++ b/IPython/frontend/wx/wx_frontend.py @@ -171,7 +171,8 @@ class WxController(ConsoleWidget, PrefilterFrontEnd): """ self.new_prompt(prompt) self._input_state = 'raw_input' - del self._cursor + if hasattr(self, '_cursor'): + del self._cursor self.SetCursor(wx.StockCursor(wx.CURSOR_CROSS)) self.waiting = True self.__old_on_enter = self._on_enter