Skip to content

Commit

Permalink
Merge from 5.x: PR #15716
Browse files Browse the repository at this point in the history
Fixes #15712
  • Loading branch information
ccordoba12 committed May 27, 2021
2 parents 8844c0b + 001b5b7 commit 889625a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion spyder/plugins/editor/utils/editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,13 @@ def cancel_requests(self):
def _exec_requested_job(self):
"""Execute the requested job after the timer has timeout."""
self._timer.stop()
self._job(*self._args, **self._kwargs)

try:
self._job(*self._args, **self._kwargs)
except KeyError:
# Catching the KeyError above is necessary to avoid
# issue spyder-ide/spyder#15712.
pass


class TextHelper(object):
Expand Down

0 comments on commit 889625a

Please sign in to comment.