<<mod edit: split from here>>

Probably a long shot, since this thread is long since dead, but was hoping I could get a hand.

I'm trying to do pretty much the same thing here, but I'm getting an error at this line:

self.storeli[self.counter].append(a)

Throwing a KeyError: 0 at me, referring the counter. Any ideas as to why it doesn't like that?

Can you explain what you mean with

I'm trying to do pretty much the same thing

It's exactly the same code?

Is it some adjusted version? Where is it?

Can you post a logfile example?
More info please.

Happy coding!!

:D

Is self.storeli a list or a dictionary? I would suggest that you print self.counter and len(self.storeli) before the line in question. +1 on Beat_Slayer's suggestion.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.18 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.