Skip to content

Commit

Permalink
Merge from 3.x: PR #9649
Browse files Browse the repository at this point in the history
Fixes #9217
  • Loading branch information
ccordoba12 committed Jun 23, 2019
2 parents be46661 + 57e7b1e commit e664526
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion spyder/plugins/ipythonconsole/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -1327,7 +1327,11 @@ def go_to_error(self, text):
if ("<ipython-input-" in fname and
self.run_cell_filename is not None):
fname = self.run_cell_filename
self.edit_goto.emit(osp.abspath(fname), int(lnb), '')
# This is needed to fix issue spyder-ide/spyder#9217
try:
self.edit_goto.emit(osp.abspath(fname), int(lnb), '')
except ValueError:
pass

@Slot()
def show_intro(self):
Expand Down

0 comments on commit e664526

Please sign in to comment.