fixed a bug with tuple indexing: a,b,c = (1,2)

This commit is contained in:
David Halter
2012-07-12 15:45:14 +02:00
parent cc081cdb3c
commit c84ca8f897
2 changed files with 25 additions and 2 deletions

View File

@@ -969,7 +969,10 @@ def assign_tuples(tup, results, seek_name):
types = []
for r in results:
if hasattr(r, "get_exact_index_types"):
types += r.get_exact_index_types(index)
try:
types += r.get_exact_index_types(index)
except IndexError:
pass
else:
debug.warning("invalid tuple lookup %s of result %s in %s"
% (tup, results, seek_name))