Skip to content

Commit

Permalink
Merge pull request #5752 from dalthviz/fixes_issue_5748
Browse files Browse the repository at this point in the history
PR: Catch TypeError while executing code instructions in the IPython console
  • Loading branch information
ccordoba12 authored Nov 15, 2017
2 parents 8875a7a + 01de31e commit 90cc35d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion spyder/plugins/ipythonconsole.py
Original file line number Diff line number Diff line change
Expand Up @@ -945,7 +945,11 @@ def execute_code(self, lines, current_client=True, clear_variables=False):
if not current_client:
# Clear console and reset namespace for
# dedicated clients
sw.sig_prompt_ready.disconnect()
# See issue 5748
try:
sw.sig_prompt_ready.disconnect()
except TypeError:
pass
sw.silent_execute(
'get_ipython().kernel.close_all_mpl_figures()')
sw.reset_namespace(warning=False, silent=True)
Expand Down

0 comments on commit 90cc35d

Please sign in to comment.