kivy / kivy

Open source UI framework written in Python, running on Windows, Linux, macOS, Android and iOS
https://kivy.org
MIT License
17k stars 3.04k forks source link

CompoundSelectionBehavior.deselect_node() should not silently hide exceptions #8672

Closed ikus060 closed 1 month ago

ikus060 commented 1 month ago

Software Versions

Describe the bug

When attaching an event "on_selected_nodes" to a CompoundSelectionBehavior that raises a ValueError, that error is silently ignore by the class and the behavior of the selection is broken. This cause confusion and miss guide the developer.

Expected behavior

The implementation should not capture the ValueError Exception and should raise it.

To Reproduce

N/A

PR on it's way