Skip to content

Commit

Permalink
fix: Add check for 'set_event_manager' method in custom_component bef…
Browse files Browse the repository at this point in the history
…ore calling it (#4668)

Add check for 'set_event_manager' method in custom_component before calling it
  • Loading branch information
ogabrielluiz authored Nov 18, 2024
1 parent 95779c8 commit 9ec66cd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/backend/base/langflow/graph/vertex/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,8 @@ async def _build(
)
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(
Expand Down

0 comments on commit 9ec66cd

Please sign in to comment.