From 000eb20ccec9058a277ef6d29fd13d88e8dedebd Mon Sep 17 00:00:00 2001 From: David Halter Date: Tue, 23 Jul 2013 14:39:43 +0200 Subject: [PATCH] delete old IndexError catches, didn't make sense --- jedi/evaluate_representation.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/jedi/evaluate_representation.py b/jedi/evaluate_representation.py index c5c09ae1..c79fdee7 100644 --- a/jedi/evaluate_representation.py +++ b/jedi/evaluate_representation.py @@ -401,13 +401,8 @@ class Execution(Executable): # some implementations of builtins: if func_name == 'getattr': # follow the first param - try: - objects = self.follow_var_arg(0) - names = self.follow_var_arg(1) - except IndexError: - debug.warning('getattr() called with to few args.') - return [] - + objects = self.follow_var_arg(0) + names = self.follow_var_arg(1) for obj in objects: if not isinstance(obj, (Instance, Class, pr.Module)): debug.warning('getattr called without instance')