|
From: Laurence R. <svn...@pl...> - 2012-09-30 22:17:55
|
Repository: plone.app.portlets Branch: refs/heads/plip10886-event-improvements Date: 2012-09-27T06:53:22-07:00 Author: Laurence Rowe (lrowe) <lau...@lr...> Commit: https://github.com/plone/plone.app.portlets/commit/9bd0781dcda77bdb2c2921998897b499039103b5 Handle NotFound error while traversing to navigation root. Files changed: M plone/app/portlets/portlets/navigation.py diff --git a/plone/app/portlets/portlets/navigation.py b/plone/app/portlets/portlets/navigation.py index 08a0ab6..2eac3aa 100644 --- a/plone/app/portlets/portlets/navigation.py +++ b/plone/app/portlets/portlets/navigation.py @@ -10,6 +10,7 @@ from plone.app.layout.navigation.root import getNavigationRoot from plone.app.vocabularies.catalog import SearchableTextSourceBinder from zope.component import adapts, getMultiAdapter, queryUtility +from zExceptions import NotFound from zope.formlib import form from zope.interface import implements, Interface from zope import schema @@ -243,7 +244,7 @@ def getNavRoot(self, _marker=None): else: try: return portal.unrestrictedTraverse(rootPath) - except (AttributeError, KeyError, TypeError): + except (AttributeError, KeyError, TypeError, NotFound): # TypeError: object is unsubscribtable might be # risen in some cases return portal |