Favorite Traceback of the Day (So Far)

Posted on
Tue Feb 13, 2018 7:05 am
DaveL17 offline
User avatar
Posts: 6742
Joined: Aug 20, 2013
Location: Chicago, IL, USA

Favorite Traceback of the Day (So Far)

Code: Select all
Traceback (most recent call last):
TypeError: Expecting an object of type list; got an object of type List instead

I came here to drink milk and kick ass....and I've just finished my milk.

[My Plugins] - [My Forums]

Posted on
Tue Feb 13, 2018 8:21 am
Colorado4Wheeler offline
User avatar
Posts: 2794
Joined: Jul 20, 2009
Location: Colorado

Re: Favorite Traceback of the Day (So Far)

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:

My Modest Contributions to Indigo:

HomeKit Bridge | Device Extensions | Security Manager | LCD Creator | Room-O-Matic | Smart Dimmer | Scene Toggle | Powermiser | Homebridge Buddy

Check Them Out Here

Posted on
Tue Feb 13, 2018 8:27 am
DaveL17 offline
User avatar
Posts: 6742
Joined: Aug 20, 2013
Location: Chicago, IL, USA

Re: Favorite Traceback of the Day (So Far)

I thought I just needed to capitalize it...


Sent from my iPhone using Tapatalk

I came here to drink milk and kick ass....and I've just finished my milk.

[My Plugins] - [My Forums]

Posted on
Tue Feb 13, 2018 8:42 am
Colorado4Wheeler offline
User avatar
Posts: 2794
Joined: Jul 20, 2009
Location: Colorado

Re: Favorite Traceback of the Day (So Far)

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).

My Modest Contributions to Indigo:

HomeKit Bridge | Device Extensions | Security Manager | LCD Creator | Room-O-Matic | Smart Dimmer | Scene Toggle | Powermiser | Homebridge Buddy

Check Them Out Here

Posted on
Tue Feb 13, 2018 9:22 am
DaveL17 offline
User avatar
Posts: 6742
Joined: Aug 20, 2013
Location: Chicago, IL, USA

Re: Favorite Traceback of the Day (So Far)

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

I came here to drink milk and kick ass....and I've just finished my milk.

[My Plugins] - [My Forums]

Posted on
Tue Feb 13, 2018 9:31 am
Colorado4Wheeler offline
User avatar
Posts: 2794
Joined: Jul 20, 2009
Location: Colorado

Re: Favorite Traceback of the Day (So Far)

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.
Attachments
python_o_1269231.jpg
python_o_1269231.jpg (29.43 KiB) Viewed 1003 times

My Modest Contributions to Indigo:

HomeKit Bridge | Device Extensions | Security Manager | LCD Creator | Room-O-Matic | Smart Dimmer | Scene Toggle | Powermiser | Homebridge Buddy

Check Them Out Here

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 1 guest