Skip to content

Commit

Permalink
Editor: Fix error when trying to get the definition of an empty token
Browse files Browse the repository at this point in the history
  • Loading branch information
ccordoba12 committed Oct 11, 2015
1 parent 4b51335 commit 2805955
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions spyderlib/utils/introspection/fallback_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ def get_definition(self, info):
filename = info.filename

line_nr = None
if token is None:
return
if '.' in token:
token = token.split('.')[-1]

Expand Down

0 comments on commit 2805955

Please sign in to comment.