We've using pyramid-services and have had some occasions where developers forgot to specify name= when passing a factory name instead of a class/interface. That resulted in an AttributeError about a missing __dict__ that wasn't very helpful. To make that problem quicker/easier to diagnose I'm raising ValueError with a helpful error message when developer passes a string instead of a class to find_service().
We've using
pyramid-services
and have had some occasions where developers forgot to specifyname=
when passing a factory name instead of a class/interface. That resulted in anAttributeError
about a missing__dict__
that wasn't very helpful. To make that problem quicker/easier to diagnose I'm raisingValueError
with a helpful error message when developer passes a string instead of a class tofind_service()
.