THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 25/05/2011 at 04:33, xxxxxxxx wrote:
I tried this:
def Message(self, tag, type, data) :
if not data: return True
but=data[0]['id'][0]
print but
return True
But I still get errors in the console:
Traceback (most recent call last) :
File "'Origins.pyp'", line 26, in Message
TypeError: 'NoneType' object is unsubscriptable
Traceback (most recent call last) :
File "'Origins.pyp'", line 26, in Message
KeyError: 0
Traceback (most recent call last) :
File "'Origins.pyp'", line 26, in Message
KeyError: 0
Traceback (most recent call last) :
File "'Origins.pyp'", line 26, in Message
KeyError: 0
Traceback (most recent call last) :
File "'Origins.pyp'", line 26, in Message
KeyError: 0
Traceback (most recent call last) :
File "'Origins.pyp'", line 26, in Message
KeyError: 0
Line 26 is: but=data[0]['id'][0]