Commit 4bd6e880 authored by Yoshinori Okuji's avatar Yoshinori Okuji

Catch NotFound in getCategoryValue.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4205 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 8eb417cb
......@@ -41,6 +41,7 @@ from Products.ERP5Type.Base import Base
from Products.CMFCategory import _dtmldir
from Products.CMFCore.PortalFolder import ContentFilter
from Products.CMFCategory.Renderer import Renderer
from OFS.Traversable import NotFound
import string, re
......@@ -204,7 +205,7 @@ class CategoryTool( UniqueObject, Folder, Base ):
relative_url = '%s/%s' % (base_category, relative_url)
node = self.unrestrictedTraverse(relative_url)
return node
except (TypeError, KeyError):
except (TypeError, KeyError, NotFound):
return None
# security.declareProtected(Permissions.AccessContentsInformation, 'getCategoryValue')
# def getCategoryValue(self, relative_url, base_category = None):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment