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 TaxonomyReadingException message not displaying #76

Merged

Conversation

courtneypacheco
Copy link
Contributor

Resolves #75

To ensure the exception message gets printed, we need to either define an __init__ function in the custom TaxonomyReadingException class OR add pass.

I opted for the latter approach and added unit tests to confirm the exception message gets printed/returned.

Copy link
Member

@nimbinatus nimbinatus left a comment

Choose a reason for hiding this comment

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

LGTM; thank you!

tests/test_parse.py Outdated Show resolved Hide resolved
tests/test_parse.py Outdated Show resolved Hide resolved
@courtneypacheco courtneypacheco force-pushed the fix-taxonomy-exception-class branch from f8c9ba3 to c0c1348 Compare December 18, 2024 18:10
@nathan-weinberg
Copy link
Member

@instructlab/schema-maintainers once this is merged please cut a 0.4.2 so we can unblock the XL E2E CI job

Add `pass` to ensure that the message shows and and we get what we expect. Update unit tests to confirm.

Signed-off-by: Courtney Pacheco <[email protected]>
@courtneypacheco courtneypacheco force-pushed the fix-taxonomy-exception-class branch from c0c1348 to b49c6ef Compare December 18, 2024 18:28
@bjhargrave bjhargrave merged commit d8f3de5 into instructlab:main Dec 18, 2024
12 checks passed
@bjhargrave
Copy link
Contributor

please cut a 0.4.2

Released: https://pypi.org/project/instructlab-schema/0.4.2/

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.

bug: TaxonomyReadingException exception message doesn't print
4 participants