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

_create_subcomponent: misleading error message #1067

Open
danjampro opened this issue Jan 19, 2021 · 1 comment
Open

_create_subcomponent: misleading error message #1067

danjampro opened this issue Jan 19, 2021 · 1 comment
Assignees

Comments

@danjampro
Copy link
Collaborator

The error message here:

raise error.NotFound(f'base_class={base_class!r} is not a callable class. '

is misleading because it states that the class is not callable. However, this error message also appears if an exception is raised while initialising a callable class.

@danjampro danjampro self-assigned this Jan 19, 2021
@wtgee
Copy link
Member

wtgee commented Jan 19, 2021

That's a bit odd as it's just catching a TypeError. I can add the error message in to see if that helps.

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

No branches or pull requests

2 participants