Description of the issue/feature this PR addresses
This PR fixes the logging of this warning:
2021-10-29 15:54:42 WARNING senaite.core get_tool::getToolByName(<object object at 0x11e772420>, 'portal_types') failed: APIError('<object object at 0x11e772420> is not supported.',) -> falling back to plone.api.portal.get_tool('portal_types')
Current behavior before PR
A lot of warning logs appeared
Desired behavior after PR is merged
No more warning logs appear
--
I confirm I have tested the PR thoroughly and coded it according to PEP8
standards.
Description of the issue/feature this PR addresses
This PR fixes the logging of this warning:
2021-10-29 15:54:42 WARNING senaite.core get_tool::getToolByName(<object object at 0x11e772420>, 'portal_types') failed: APIError('<object object at 0x11e772420> is not supported.',) -> falling back to plone.api.portal.get_tool('portal_types')
Current behavior before PR
A lot of warning logs appeared
Desired behavior after PR is merged
No more warning logs appear
-- I confirm I have tested the PR thoroughly and coded it according to PEP8 standards.