mirror of
https://github.com/no2chem/wideq.git
synced 2025-05-27 20:40:18 -07:00
Expand comment for #25
This commit is contained in:
parent
3918ce69a3
commit
9896067952
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user