Skip to content

Commit

Permalink
Add check for 'set_event_manager' method in custom_component before c…
Browse files Browse the repository at this point in the history
…alling it
  • Loading branch information
ogabrielluiz committed Nov 18, 2024
1 parent a7aa3ab commit fd612e7
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 fd612e7

Please sign in to comment.