We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f3430f commit 0fcecf5Copy full SHA for 0fcecf5
myDevices/cloud/client.py
@@ -574,8 +574,8 @@ def ProcessSchedulerCommand(self, message):
574
575
def EnqueueCommandResponse(self, message, error):
576
"""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.
+ if not 'cmdId' in message:
+ # If there is no command id we assume this is a scheduled command and don't send a response message.
579
return
580
debug('EnqueueCommandResponse error: {}'.format(error))
581
if error:
0 commit comments