diff --git a/bt5/erp5_upgrader/SkinTemplateItem/portal_skins/erp5_upgrader/TemplateTool_checkWorkflowChainConsistency.xml b/bt5/erp5_upgrader/SkinTemplateItem/portal_skins/erp5_upgrader/TemplateTool_checkWorkflowChainConsistency.xml index cf4a2edfb05e19debba0e5ea21722a3676607ff4..c0de45cb44171626bc4356b4e809ee0181098a73 100644 --- a/bt5/erp5_upgrader/SkinTemplateItem/portal_skins/erp5_upgrader/TemplateTool_checkWorkflowChainConsistency.xml +++ b/bt5/erp5_upgrader/SkinTemplateItem/portal_skins/erp5_upgrader/TemplateTool_checkWorkflowChainConsistency.xml @@ -97,10 +97,7 @@ new_workflow_chain_dict = {\'chain_%s\' % portal_type : \',\'.join(chain) \\\n for portal_type, chain in workflow_chain_by_portal_type_dict.iteritems()}\n \n for portal_type, workflow_chain in portal_type_dict.iteritems():\n - try:\n - workflow_chain_list = list(workflow_chain_by_portal_type_dict[portal_type])\n - except:\n - return workflow_chain_by_portal_type_dict[portal_type]\n + workflow_chain_list = list(workflow_chain_by_portal_type_dict.get(portal_type, []))\n expected_workflow_chain = sorted(workflow_chain)\n if sorted(workflow_chain_list) != expected_workflow_chain:\n error_list.append("%s - Expected: %s <> Found: %s" % (portal_type, \', \'.join(workflow_chain), \', \'.join(workflow_chain_list)))\n