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

Raise errors for invalid attributes directly on __call__. #55

Merged
merged 1 commit into from
Sep 8, 2024

Conversation

pelme
Copy link
Owner

@pelme pelme commented Sep 8, 2024

This commit transforms attributes to strings directly when being called rather at rendering time. This makes exceptions for invalid attributes appear directly leading to clearer stack traces.

Fixes #49.

This commit transforms attributes to strings directly when being called
rather at rendering time. This makes exceptions for invalid attributes
appear directly leading to clearer stack traces.

Fixes #49.
@pelme pelme force-pushed the attribute-error-handling branch from 7804c8d to 691d2c8 Compare September 8, 2024 19:03
@pelme pelme marked this pull request as ready for review September 8, 2024 19:04
@pelme pelme merged commit b457d12 into main Sep 8, 2024
13 checks passed
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.

Raise error on invalid attributes directly
1 participant