diff --git a/src/smolagents/local_python_executor.py b/src/smolagents/local_python_executor.py index 3c545ca..7f1c67e 100644 --- a/src/smolagents/local_python_executor.py +++ b/src/smolagents/local_python_executor.py @@ -1334,6 +1334,8 @@ def evaluate_ast( if expression.value else None ) + elif isinstance(expression, ast.Pass): + return None else: # For now we refuse anything else. Let's add things as we need them. raise InterpreterError(f"{expression.__class__.__name__} is not supported.")