fix: Add check for 'set_event_manager' method in custom_component before calling it (#4668)
Add check for 'set_event_manager' method in custom_component before calling it
This commit is contained in:
parent
95779c8cef
commit
9ec66cdb13
1 changed files with 2 additions and 1 deletions
|
|
@ -490,7 +490,8 @@ class Vertex:
|
|||
)
|
||||
else:
|
||||
custom_component = self.custom_component
|
||||
self.custom_component.set_event_manager(event_manager)
|
||||
if hasattr(self.custom_component, "set_event_manager"):
|
||||
self.custom_component.set_event_manager(event_manager)
|
||||
custom_params = initialize.loading.get_params(self.params)
|
||||
|
||||
await self._build_results(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue