Page 1 of 1

Favorite Traceback of the Day (So Far)

PostPosted: Tue Feb 13, 2018 7:05 am
by DaveL17
Code: Select all
Traceback (most recent call last):
TypeError: Expecting an object of type list; got an object of type List instead

Re: Favorite Traceback of the Day (So Far)

PostPosted: Tue Feb 13, 2018 8:21 am
by Colorado4Wheeler
LOL, I've gotten that "indigo.List() versus Python list" issue myself many times and the first time I got it I also said "huh?". :lol:

Re: Favorite Traceback of the Day (So Far)

PostPosted: Tue Feb 13, 2018 8:27 am
by DaveL17
I thought I just needed to capitalize it...


Sent from my iPhone using Tapatalk

Re: Favorite Traceback of the Day (So Far)

PostPosted: Tue Feb 13, 2018 8:42 am
by Colorado4Wheeler
You need to un-capitalize it :). I use the indigo.List() and indigo.Dict() for a lot of things but often it's because I want the pretty unicode(myList) output when I'm debugging, they don't play with a lot of the common list and dict functions I use, like JSON dumps and loads (or what you are trying to do with them).

Re: Favorite Traceback of the Day (So Far)

PostPosted: Tue Feb 13, 2018 9:22 am
by DaveL17
Colorado4Wheeler wrote:
You need to un-capitalize it :).


That’s what I meant.

Nothing tricky or insurmountable—I just got a kick out of the exception.


Sent from my iPhone using Tapatalk

Re: Favorite Traceback of the Day (So Far)

PostPosted: Tue Feb 13, 2018 9:31 am
by Colorado4Wheeler
DaveL17 wrote:
I just got a kick out of the exception.

I've gotten a few messages like that in my Indigo plugin development that make me laugh.