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

fix esc status label update after pannel close #72

Merged

Conversation

Huibean
Copy link
Member

@Huibean Huibean commented Nov 11, 2024

avoid update function call after pannel close

2024-11-11 14:48:17,410 ERROR dronecan.node Transfer handler exception
Traceback (most recent call last):
  File "/home/parallels/.local/lib/python3.12/site-packages/dronecan/node.py", line 198, in call_handlers
    wrapper(transfer)
  File "/home/parallels/.local/lib/python3.12/site-packages/dronecan/node.py", line 171, in call
    result = handler(event, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/dist-packages/dronecan_gui_tool/panels/esc_panel.py", line 179, in _on_esc_status
    sl.update_status(msg)
  File "/usr/local/lib/python3.12/dist-packages/dronecan_gui_tool/panels/esc_panel.py", line 87, in update_status
    self._error_count_label.setText(f'Err: {status.error_count}')
RuntimeError: wrapped C/C++ object of type QLabel has been deleted

@tridge tridge merged commit ff2a018 into dronecan:master Nov 28, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants