Skip to content

Commit

Permalink
Merge from 5.x: PR #16112
Browse files Browse the repository at this point in the history
Fixes #16105
  • Loading branch information
ccordoba12 committed Aug 1, 2021
2 parents ac81d6f + 2c71220 commit 00ac6bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spyder/plugins/editor/extensions/snippets.py
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ def insert_text(self, text, line, column):
self._remove_selection(start, end)
line, column = start
node, snippet, text_node = self._find_node_by_position(line, column)
if node is None or text_node is None:
if node is None or snippet is None or text_node is None:
self.reset()
return
tokens = tokenize(text)
Expand Down

0 comments on commit 00ac6bf

Please sign in to comment.