Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add self.logger = logger for e2b_executor #537

Merged
merged 1 commit into from
Feb 7, 2025

Conversation

femto
Copy link
Contributor

@femto femto commented Feb 7, 2025

Hello, while trying e2b_executor example,

File "/Users/femtozheng/python-project/smolagents/src/smolagents/e2b_executor.py", line 48, in __init__

self.logger.log("Initializing E2B executor, hold on...")

^^^^^^^^^^^

AttributeError: 'E2BExecutor' object has no attribute 'logger'

python-BaseException

seemed pass in logger doesn't get set to self.logger,
so I added one.

Copy link
Member

@albertvillanova albertvillanova left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! This bug was introduced in:

There was no test to catch it!

@albertvillanova albertvillanova merged commit da1d7b9 into huggingface:main Feb 7, 2025
3 checks passed
This was referenced Feb 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants