AWS Lambda ERROR: AttributeError 'list' object has no attribute 'get'

前端 未结 2 1694
悲&欢浪女
悲&欢浪女 2021-01-29 05:17

I have a Lambda function that is designed to turn ON/OFF my Philip HUE lightbulbs. I am able to execute the python script & it runs (error-free) on my local machine. However

2条回答
  •  长发绾君心
    2021-01-29 05:33

    The issue with changing the value of internal_dict_value during the loop is you dont know what type it's going to hold. try something like if type(internal_dict_value) is dict:

提交回复
热议问题