panoptes/POCS

_create_subcomponent: misleading error message

Opened this issue · 1 comments

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.

wtgee commented

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