senaite / senaite.jsonapi

RESTful JSON API for SENAITE
https://www.senaite.com
GNU General Public License v2.0
11 stars 20 forks source link

Fix malformed API call #43

Closed ramonski closed 3 years ago

ramonski commented 3 years ago

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.