1
0
mirror of https://github.com/no2chem/wideq.git synced 2025-05-29 13:30:26 -07:00

Expand comment for #25

This commit is contained in:
Adrian Sampson 2019-07-04 10:53:06 -04:00
parent 3918ce69a3
commit 9896067952

View File

@ -335,8 +335,10 @@ class Session(object):
work_list = [{'deviceId': device_id, 'workId': work_id}]
res = self.post('rti/rtiResult', {'workList': work_list})['workList']
# Return None in case work hasn't started yet
if not 'returnCode' in res:
# When monitoring first starts, it usually takes a few
# iterations before data becomes available. In the initial
# "warmup" phase, `returnCode` is missing from the response.
if 'returnCode' not in res:
return None
# Check for errors.