Commit 88c0f3cf authored by Łukasz Nowak's avatar Łukasz Nowak

Do not hide errors of signature.

It is better to raise loudly by default in case if upgrader signature is wrong.
parent eee75032
...@@ -82,9 +82,8 @@ types_tool = portal.portal_types\n ...@@ -82,9 +82,8 @@ types_tool = portal.portal_types\n
portal_type_list = portal.ERP5Site_getUpgraderSignature().get(\'update_role_portal_type_list\', [])\n portal_type_list = portal.ERP5Site_getUpgraderSignature().get(\'update_role_portal_type_list\', [])\n
\n \n
for pt in portal_type_list:\n for pt in portal_type_list:\n
portal_type_document = types_tool.getTypeInfo(pt)\n # Note: Raises on purpose\n
if portal_type_document is not None:\n types_tool[pt].updateRoleMapping()\n
portal_type_document.updateRoleMapping()\n
\n \n
message_list.append(\n message_list.append(\n
"Update Local Roles for security groups for: \\n\\t%s" % \\\n "Update Local Roles for security groups for: \\n\\t%s" % \\\n
......
589 590
\ No newline at end of file \ No newline at end of file
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