Fix Alexa and RuntimeError: dictionary keys changed during iteration
This commit is contained in:
parent
0c5d478974
commit
56a74255b6
1 changed files with 1 additions and 1 deletions
|
@ -48,7 +48,7 @@ def convert_alexa_to_companion(dictionary):
|
|||
"""
|
||||
The params passed by Alexa must first be converted to Companion talk
|
||||
"""
|
||||
for key in dictionary:
|
||||
for key in list(dictionary):
|
||||
if key in v.ALEXA_TO_COMPANION:
|
||||
dictionary[v.ALEXA_TO_COMPANION[key]] = dictionary[key]
|
||||
del dictionary[key]
|
||||
|
|
Loading…
Reference in a new issue