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: exception locations in component classes #4087

Merged
merged 4 commits into from
Oct 9, 2024

Conversation

jordanrfrazier
Copy link
Collaborator

Component classes parse code unintuitively - the Component class must be the first class in the file. This PR removes the custom exceptions completely, since the error handling wasn't doing anything particular besides re-logging them.

I left the TRY002 ruff rule in place, as it is not an auto-fix; these errors must be manually done, so future devs running into them shouldn't (automatically, at least) fall into the same issue.

@jordanrfrazier jordanrfrazier requested a review from phact October 9, 2024 19:33
@dosubot dosubot bot added the size:L This PR changes 100-499 lines, ignoring generated files. label Oct 9, 2024
@github-actions github-actions bot added the bug Something isn't working label Oct 9, 2024
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Oct 9, 2024
@jordanrfrazier jordanrfrazier force-pushed the update-exception-handling-for-ruff branch from 992109e to a8b296b Compare October 9, 2024 19:41
@jordanrfrazier jordanrfrazier force-pushed the update-exception-handling-for-ruff branch from 3c57dc9 to dde6c14 Compare October 9, 2024 19:42
@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. and removed size:L This PR changes 100-499 lines, ignoring generated files. labels Oct 9, 2024
@jordanrfrazier jordanrfrazier enabled auto-merge (squash) October 9, 2024 19:45
@jordanrfrazier jordanrfrazier merged commit 8aeb801 into main Oct 9, 2024
28 checks passed
@jordanrfrazier jordanrfrazier deleted the update-exception-handling-for-ruff branch October 9, 2024 19:58
diogocabral pushed a commit to headlinevc/langflow that referenced this pull request Nov 26, 2024
* fix exception locations in component classes

* print cleanups

* remove randomdbs

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
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:M This PR changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants