mirror of
https://github.com/no2chem/wideq.git
synced 2025-05-29 21:40:16 -07:00
Allow missing monitor return code
This commit is contained in:
parent
0a48345409
commit
c6d597f446
2
wideq.py
2
wideq.py
@ -318,7 +318,7 @@ class Session(object):
|
|||||||
res = self.post('rti/rtiResult', {'workList': work_list})['workList']
|
res = self.post('rti/rtiResult', {'workList': work_list})['workList']
|
||||||
|
|
||||||
# Check for errors.
|
# Check for errors.
|
||||||
code = res['returnCode']
|
code = res.get('returnCode') # returnCode can be missing.
|
||||||
if code != '0000':
|
if code != '0000':
|
||||||
raise MonitorError(device_id, code)
|
raise MonitorError(device_id, code)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user