Andrei Kulakov <andrei....@gmail.com> added the comment:
Hi Mohamed, you can try changing the following line: itemXid = assetinfo_lst[xrec][1] to: print('xrec',xrec) itemXid = assetinfo_lst[xrec] itemXid = itemXid[1] This will show you if the index error is caused by xrec or by [1] lookup. If caused by xrec lookup, you will see what xrec value is at this point. ---------- nosy: +andrei.avk _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue44076> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com