Commit 1fcdde4c authored by Yoshinori Okuji's avatar Yoshinori Okuji

Do not catch ConflictError. Print a traceback for a warning.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4009 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 2fb40fb2
......@@ -1216,8 +1216,10 @@ class Base( CopyContainer, PortalContent, ActiveObject, ERP5PropertyManager ):
try:
value = self._getCategoryTool().resolveCategory(path)
if value is not None: ref_list.append(value)
except ConflictError:
raise
except:
LOG("ERP5Type WARNING",0,"category %s has no object value" % path)
LOG("ERP5Type WARNING",0,"category %s has no object value" % path, error=sys.exc_info())
return ref_list
security.declareProtected( Permissions.View, 'getValueList' )
......@@ -1244,8 +1246,10 @@ class Base( CopyContainer, PortalContent, ActiveObject, ERP5PropertyManager ):
try:
value = self._getCategoryTool().resolveCategory(path)
if value is not None: ref_list.append(value)
except ConflictError:
raise
except:
LOG("ERP5Type WARNING",0,"category %s has no object value" % path)
LOG("ERP5Type WARNING",0,"category %s has no object value" % path, error=sys.exc_info())
return ref_list
security.declareProtected( Permissions.View, 'getAcquiredValueList' )
......
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