diff --git a/spyderlib/utils/introspection/fallback_plugin.py b/spyderlib/utils/introspection/fallback_plugin.py index cd8efecf4a6..d57669d448b 100644 --- a/spyderlib/utils/introspection/fallback_plugin.py +++ b/spyderlib/utils/introspection/fallback_plugin.py @@ -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]