Commit e43812fa authored by Yoshinori Okuji's avatar Yoshinori Okuji

resolveCategory catches only TypeError and KeyError.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3553 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent bef140ca
...@@ -204,7 +204,7 @@ class CategoryTool( UniqueObject, Folder, Base ): ...@@ -204,7 +204,7 @@ class CategoryTool( UniqueObject, Folder, Base ):
relative_url = '%s/%s' % (base_category, relative_url) relative_url = '%s/%s' % (base_category, relative_url)
node = self.unrestrictedTraverse(relative_url) node = self.unrestrictedTraverse(relative_url)
return node return node
except: except (TypeError, KeyError):
return None return None
# security.declareProtected(Permissions.AccessContentsInformation, 'getCategoryValue') # security.declareProtected(Permissions.AccessContentsInformation, 'getCategoryValue')
# def getCategoryValue(self, relative_url, base_category = None): # 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