From ee1a15ce27fcb97d7a43310dca2409ba5860accc Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com>
Date: Fri, 22 Sep 2006 08:08:51 +0000
Subject: [PATCH] forgot the exception name in except:

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@10236 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5/Document/BusinessTemplate.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/product/ERP5/Document/BusinessTemplate.py b/product/ERP5/Document/BusinessTemplate.py
index ff8def6291..ceb93cebe2 100644
--- a/product/ERP5/Document/BusinessTemplate.py
+++ b/product/ERP5/Document/BusinessTemplate.py
@@ -915,7 +915,7 @@ class CategoryTemplateItem(ObjectTemplateItem):
             if prop not in ('id', 'uid'):
               try:
                 prop_value = obj.getProperty(prop, evaluate=0)
-              except:
+              except TypeError: # the getter doesn't support evaluate=
                 prop_value = obj.getProperty(prop)
               category.setProperty(prop, prop_value)
           # import sub objects if there is
@@ -958,7 +958,7 @@ class CategoryTemplateItem(ObjectTemplateItem):
             if prop not in ('id', 'uid'):
               try:
                 prop_value = obj.getProperty(prop, evaluate=0)
-              except:
+              except TypeError: # the getter doesn't support evaluate=
                 prop_value = obj.getProperty(prop)
               category.setProperty(prop, prop_value)
           # import sub objects if there is
-- 
2.30.9