From 5d9968eae669800a589725b6d350ce48cf57b503 Mon Sep 17 00:00:00 2001 From: Carlos Cordoba Date: Thu, 7 Sep 2017 11:36:20 -0500 Subject: [PATCH] IPython console: Don't use super in _handle_error --- spyder/widgets/ipythonconsole/shell.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/spyder/widgets/ipythonconsole/shell.py b/spyder/widgets/ipythonconsole/shell.py index 869b2afdbf6..7e9b6d88892 100644 --- a/spyder/widgets/ipythonconsole/shell.py +++ b/spyder/widgets/ipythonconsole/shell.py @@ -410,11 +410,7 @@ def _handle_error(self, msg): """ Reimplemented to reset the prompt if the error comes after the reply """ - # In pyqt4, if super does not has _handle_error, disregard the error - if PYQT4: - if not hasattr(super(ShellWidget, self), '_handle_error'): - return - super(ShellWidget, self)._handle_error(msg) + self._process_execute_error(msg) self._show_interpreter_prompt() def _context_menu_make(self, pos):