Open jimboca opened 3 years ago
Should trap error when undefined driver is passed in.
2021-08-19 19:46:59,482 Thread-3 udi_interface ERROR udi_interface:write: Exception in thread 2021-08-19 19:46:59,483 Thread-3 udi_interface ERROR udi_interface:write: Thread-3 2021-08-19 19:46:59,484 Thread-3 udi_interface ERROR udi_interface:write: : 2021-08-19 19:46:59,485 Thread-3 udi_interface ERROR udi_interface:write: Traceback (most recent call last): 2021-08-19 19:46:59,486 Thread-3 udi_interface ERROR udi_interface:write: File "/usr/local/lib/python3.8/threading.py", line 932, in _bootstrap_inner 2021-08-19 19:46:59,490 Thread-3 udi_interface ERROR udi_interface:write: self.run() 2021-08-19 19:46:59,491 Thread-3 udi_interface ERROR udi_interface:write: File "/usr/local/lib/python3.8/threading.py", line 870, in run 2021-08-19 19:46:59,495 Thread-3 udi_interface ERROR udi_interface:write: self._target(*self._args, **self._kwargs) 2021-08-19 19:46:59,496 Thread-3 udi_interface ERROR udi_interface:write: File "/usr/home/admin/dev/pg3/udi-poly-FlumeWater/nodes/Controller.py", line 44, in handler_start 2021-08-19 19:46:59,498 Thread-3 udi_interface ERROR udi_interface:write: self.setDriver('GV2', 0) 2021-08-19 19:46:59,499 Thread-3 udi_interface ERROR udi_interface:write: File "/var/polyglot/.local/lib/python3.8/site-packages/udi_interface/node.py", line 72, in setDriver 2021-08-19 19:46:59,502 Thread-3 udi_interface ERROR udi_interface:write: if self.drivers[drv]['value'] != value: 2021-08-19 19:46:59,503 Thread-3 udi_interface ERROR udi_interface:write: TypeError
Fixed in version 3.0.15 of udi_interface.
Should trap error when undefined driver is passed in.