1
0
forked from VimPlug/jedi

delete old IndexError catches, didn't make sense

This commit is contained in:
David Halter
2013-07-23 14:39:43 +02:00
parent d78b72b046
commit 000eb20cce

View File

@@ -401,13 +401,8 @@ class Execution(Executable):
# some implementations of builtins: # some implementations of builtins:
if func_name == 'getattr': if func_name == 'getattr':
# follow the first param # follow the first param
try: objects = self.follow_var_arg(0)
objects = self.follow_var_arg(0) names = self.follow_var_arg(1)
names = self.follow_var_arg(1)
except IndexError:
debug.warning('getattr() called with to few args.')
return []
for obj in objects: for obj in objects:
if not isinstance(obj, (Instance, Class, pr.Module)): if not isinstance(obj, (Instance, Class, pr.Module)):
debug.warning('getattr called without instance') debug.warning('getattr called without instance')