Manual panel's widget is None
when PyQtWebEngine
is not installed.
Avoid exception on closing GUI by only propagating the closeEvent to the panel's widget when it exists.
MainThread ERROR 2022-01-10 14:03:58,500 LogExceptHook: Unhandled exception:
Traceback (most recent call last):
File "c:\users\vagrant\appdata\local\programs\python\python38\lib\site-packages\taurus\qt\qtgui\taurusgui\taurusgui.py", line 426, in closeEvent
panel.widget().closeEvent(event)
AttributeError: 'NoneType' object has no attribute 'closeEvent'