From 66080408d0a878cc95c6c3b2e47a5f6128ed0a17 Mon Sep 17 00:00:00 2001 From: Carlos Cordoba Date: Sun, 23 Jun 2019 12:14:34 +0200 Subject: [PATCH] IPython console: Catch error when pressing the link of a traceback --- spyder/plugins/ipythonconsole.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/spyder/plugins/ipythonconsole.py b/spyder/plugins/ipythonconsole.py index 9b9a715fba4..539603dc7d6 100644 --- a/spyder/plugins/ipythonconsole.py +++ b/spyder/plugins/ipythonconsole.py @@ -1694,7 +1694,11 @@ def go_to_error(self, text): match = get_error_match(to_text_string(text)) if match: fname, lnb = match.groups() - 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):