taurus-org / taurus

Moved to https://gitlab.com/taurus-org/taurus
http://taurus-scada.org
43 stars 46 forks source link

Catch RuntimeError in tauruscombobox postDetach #1102

Closed MikeFalowski closed 4 years ago

MikeFalowski commented 4 years ago

In case of disconnecting signal which was not connected before, PyQt5 raises TypeError, but PySide2 raises RuntimeError.

This is the simplest solution, I guess. I wasn't sure if I should catch only TypeError when PyQt5 is used and only RuntimeError when PySide2 is used, so I omitted this.

Fix #1100

cpascual commented 4 years ago

Merged. Thanks for the contribution @MikeFalowski .