Skip to content

Commit

Permalink
Editor: Fix error when getting completions with Jedi
Browse files Browse the repository at this point in the history
  • Loading branch information
ccordoba12 committed Feb 12, 2018
1 parent 6d15b13 commit a72b5b1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion spyder/utils/introspection/jedi_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,10 @@ def get_completions(self, info):
completions = self.get_jedi_object('completions', info)
if DEBUG_EDITOR:
log_last_error(LOG_FILENAME, str("comp: " + str(completions)[:100]))
completions = [(c.name, c.type) for c in completions]
if completions is not None:
completions = [(c.name, c.type) for c in completions]
else:
completions = []
debug_print(str(completions)[:100])
return completions

Expand Down

0 comments on commit a72b5b1

Please sign in to comment.