Commit ee1a15ce authored by Jérome Perrin's avatar Jérome Perrin

forgot the exception name in except:


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@10236 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 93da3d02
......@@ -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
......
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