Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Python] Fix DeviceProxyWrapper __del__ #34011

Merged
merged 1 commit into from
Jun 19, 2024

Commits on Jun 19, 2024

  1. [Python] Fix DeviceProxyWrapper __del__

    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.
    agners committed Jun 19, 2024
    Configuration menu
    Copy the full SHA
    f8c72ae View commit details
    Browse the repository at this point in the history