From aa6fa132624fc1d71849701038d6dbaede5cfb92 Mon Sep 17 00:00:00 2001 From: Brandon Hancock Date: Wed, 18 Sep 2024 15:57:05 -0400 Subject: [PATCH] minor tweak to conditions and event handling --- src/crewai/flow/flow.py | 1 - 1 file changed, 1 deletion(-) diff --git a/src/crewai/flow/flow.py b/src/crewai/flow/flow.py index 05a65638e..a4e839073 100644 --- a/src/crewai/flow/flow.py +++ b/src/crewai/flow/flow.py @@ -111,7 +111,6 @@ def and_(*conditions): elif isinstance(condition, str): methods.append(condition) elif callable(condition): - # Extract the __name__ even if the function is wrapped by a decorator methods.append(getattr(condition, "__name__", repr(condition))) else: raise ValueError("Invalid condition in and_()")