Appdaemon keyerror not giving reference to my source

I’m getting the following error from appdaemon. Since it doesn’t reference a line in my app, and I don’t use the terminate function yet. I’m confused… I made some changes to pass in a new value from the config file, but it’s just a bunch of if’s So I’m guessing I typed something wrong, but I’m not sure where to look. Thought maybe the error would point me to a section of code… :slight_smile:

2017-07-24 10:05:43.193126 WARNING ------------------------------------------------------------
2017-07-24 10:09:20.190417 WARNING ------------------------------------------------------------
2017-07-24 10:09:20.191982 WARNING Unexpected error during loading of office_lights.py:
2017-07-24 10:09:20.192931 WARNING ------------------------------------------------------------
2017-07-24 10:09:20.195269 WARNING Traceback (most recent call last):
  File "/srv/appdaemon/lib/python3.5/site-packages/appdaemon/appdaemon.py", line 891, in read_app
    term_file(file)
  File "/srv/appdaemon/lib/python3.5/site-packages/appdaemon/appdaemon.py", line 549, in term_file
    term_object(key)
  File "/srv/appdaemon/lib/python3.5/site-packages/appdaemon/appdaemon.py", line 572, in term_object
    if hasattr(conf.objects[name]["object"], "terminate"):
KeyError: 'office_lights'

2017-07-24 10:09:20.196202 WARNING ------------------------------------------------------------

Never mind. Appdaemon 2.0.8 fixed this error and pointed me to what it was upset about in my code.

1 Like

All because of two missing )). Why couldn’t it just say that…

1 Like