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

Allow missing monitor return code

This commit is contained in:
Adrian Sampson 2018-04-28 09:59:42 -04:00
parent 0a48345409
commit c6d597f446

View File

@ -318,7 +318,7 @@ class Session(object):
res = self.post('rti/rtiResult', {'workList': work_list})['workList']
# Check for errors.
code = res['returnCode']
code = res.get('returnCode') # returnCode can be missing.
if code != '0000':
raise MonitorError(device_id, code)