GitHub-only
WARNING: If you are reading this on GitHub, DON’T! Read the documentation at docs.plone.org so you have working references and proper formatting.
plone.api.exc¶
Exceptions raised by plone.api methods.
- exception plone.api.exc.CannotGetPortalError[source]¶
- Raised when the portal object cannot be retrieved. - This normally happens if you are using plone.api - bin/instance debug, because debug sessions do not have a request and so the getSite() cannot know which Plone portal you want to get (as there can be multiple Plone sites).- The solution is to use the - -O <portal_id>parameter to tell Zope to traverse to a portal, for example- bin/instance -O Plone debug.