Skip to content

Commit 0fcecf5

Browse files
committed
Fix check for cmdId in message.
1 parent 2f3430f commit 0fcecf5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

myDevices/cloud/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -574,8 +574,8 @@ def ProcessSchedulerCommand(self, message):
574574

575575
def EnqueueCommandResponse(self, message, error):
576576
"""Send response after processing a command message"""
577-
if not hasattr(message, 'cmdId'):
578-
# If there is no command idea we assume this is a scheduled command and don't send a response message.
577+
if not 'cmdId' in message:
578+
# If there is no command id we assume this is a scheduled command and don't send a response message.
579579
return
580580
debug('EnqueueCommandResponse error: {}'.format(error))
581581
if error:

0 commit comments

Comments
 (0)