Recently notice a problem under the tp listing function. Redbot will throw an IndexError when you mass buying/selling the same item for more than a stack or at different price.
Exception in command 'tp current'
Traceback (most recent call last):
File "/usr/local/lib/python3.5/site-packages/discord/ext/commands/core.py", line 50, in wrapped
ret = yield from coro(*args, **kwargs)
File "/home/pi/red-discordbot/cogs/guildwars2.py", line 1367, in current
item_name = itemlist[counter]["name"]
IndexError: list index out of range
Probably due to the fact that items API and commerce/listings API will not reply duplicated information from the same item id. See example here and here.
Recently notice a problem under the tp listing function. Redbot will throw an
IndexError
when you mass buying/selling the same item for more than a stack or at different price.Probably due to the fact that items API and commerce/listings API will not reply duplicated information from the same item id. See example here and here.