mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-10 00:28:31 +00:00
minor tweak to conditions and event handling
This commit is contained in:
@@ -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_()")
|
||||
|
||||
Reference in New Issue
Block a user