Skip to content

Commit

Permalink
Merge pull request #5162 from ccordoba12/fix-handle-error
Browse files Browse the repository at this point in the history
PR: Don't use super in _handle_error method of IPython console
  • Loading branch information
ccordoba12 authored Sep 7, 2017
2 parents 066df79 + 5d9968e commit c88de18
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions spyder/widgets/ipythonconsole/shell.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit c88de18

Please sign in to comment.