Could not adapt error silently swallows exceptions in adaption
Bug #1181749 reported by
Dylan Jay
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
zope.component |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
If there is an exception in the factory when creating the adapter, zope.component will silently move on to the next adapter and eventually give a "could not adapt" error. This makes it very hard to debug such an error since you first have to guess what factories might be being called and then guess where the exception could be coming from. Is there a way we could have more meaningful stacktrace or logs which give clues to the swallowed exception?
To post a comment you must log in.
Now tracked on Github:
https:/ /github. com/zopefoundat ion/zope. component/ issues/ 11