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

fix: raise ImportError instead of silencing AttributeError #4812

Merged
merged 4 commits into from
Nov 25, 2024

Conversation

italojohnny
Copy link
Member

This PR raises ImportError to prevent silencing of AttributeError during custom component evaluation and adds the Message class to init for easier, standardized imports

@dosubot dosubot bot added size:S This PR changes 10-29 lines, ignoring generated files. bug Something isn't working labels Nov 25, 2024
@github-actions github-actions bot added bug Something isn't working and removed bug Something isn't working labels Nov 25, 2024
@italojohnny italojohnny force-pushed the chore/expose-import-errors branch from 8afa592 to 10c8514 Compare November 25, 2024 14:06
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Nov 25, 2024
@italojohnny italojohnny enabled auto-merge (squash) November 25, 2024 14:10
@italojohnny italojohnny merged commit 450b371 into main Nov 25, 2024
25 of 26 checks passed
@italojohnny italojohnny deleted the chore/expose-import-errors branch November 25, 2024 14:14
diogocabral pushed a commit to headlinevc/langflow that referenced this pull request Nov 26, 2024
…ai#4812)

* fix: raise ImportError instead of silencing AttributeError

* chore: add Message class to init for import standardization

* feat: add exception message pattern check for import errors

* refactor: simplify code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working lgtm This PR has been approved by a maintainer size:S This PR changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants