From ed50054d97adfde34c0d2ffdad2c583497f4388c Mon Sep 17 00:00:00 2001 From: Yoshinori Okuji <yo@nexedi.com> Date: Tue, 13 Jan 2004 17:10:07 +0000 Subject: [PATCH] If an object does not have getBaseCategoryId, simply ignore it. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@193 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/CMFCategory/Renderer.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/product/CMFCategory/Renderer.py b/product/CMFCategory/Renderer.py index e0f18445f6..1276717a89 100755 --- a/product/CMFCategory/Renderer.py +++ b/product/CMFCategory/Renderer.py @@ -190,6 +190,8 @@ class Renderer(Filter): else: # If the base category of this category does not match the guessed base category, # merely ignore this category. + if not hasattr('getBaseCategoryId'): + continue if value.getBaseCategoryId() != guessed_base_category: continue else: -- 2.30.9