diff --git a/jedi/api/classes.py b/jedi/api/classes.py index 3a9631e1..cfcbf8db 100644 --- a/jedi/api/classes.py +++ b/jedi/api/classes.py @@ -342,7 +342,7 @@ class BaseDefinition(object): followed = list(self._name.infer()) if not followed or not hasattr(followed[0], 'py__call__'): - raise AttributeError() + raise AttributeError('There are no params defined on this.') context = followed[0] # only check the first one. return [Definition(self._evaluator, n) for n in get_param_names(context)]