Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Python] Fix DeviceProxyWrapper __del__ (#34011)
During tests the following unrelated Exception was raised: ``` Exception ignored in: <function DeviceProxyWrapper.__del__ at 0x7f12177b7a60> Traceback (most recent call last): File "/__w/connectedhomeip/connectedhomeip/out/venv/lib/python3.9/site-packages/chip/ChipDeviceCtrl.py", line 306, in __del__ if (self._proxyType == self.DeviceProxyType.OPERATIONAL and self.self._dmLib is not None and hasattr(builtins, 'chipStack') and builtins.chipStack is not None): AttributeError: 'DeviceProxyWrapper' object has no attribute 'self' Exception ignored in: <function DeviceProxyWrapper.__del__ at 0x7f12177b7a60> Traceback (most recent call last): File "/__w/connectedhomeip/connectedhomeip/out/venv/lib/python3.9/site-packages/chip/ChipDeviceCtrl.py", line 306, in __del__ if (self._proxyType == self.DeviceProxyType.OPERATIONAL and self.self._dmLib is not None and hasattr(builtins, 'chipStack') and builtins.chipStack is not None): AttributeError: 'DeviceProxyWrapper' object has no attribute 'self' ``` This fixes the issue by removing the extra `self` in the condition.
- Loading branch information