0
0
mirror of https://github.com/bec-project/bec_widgets.git synced 2025-07-14 03:31:50 +02:00

WIP fix client utils if widget is not in client skip

This commit is contained in:
2025-04-07 13:18:27 +02:00
parent 9af9ef3830
commit 45de9bf131

View File

@ -490,7 +490,9 @@ class BECGuiClient(RPCBase):
gui_id = state["gui_id"]
if state["widget_class"] in IGNORE_WIDGETS:
return
widget_class = getattr(client, state["widget_class"])
widget_class = getattr(client, state["widget_class"], None)
if widget_class is None:
return
obj = self._ipython_registry.get(gui_id)
if obj is None:
widget = widget_class(gui_id=gui_id, name=name, parent=parent)