Commit 782bf8d3 authored by Ivan Tyagov's avatar Ivan Tyagov

Raise the real error.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@27051 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d37d8fe4
...@@ -536,7 +536,11 @@ class WizardTool(BaseTool): ...@@ -536,7 +536,11 @@ class WizardTool(BaseTool):
portal = self.getPortalObject() portal = self.getPortalObject()
bt5_files = server_response.get("filedata", []) bt5_files = server_response.get("filedata", [])
bt5_filenames = server_response["server_buffer"].get("filenames", []) server_buffer = server_response.get("server_buffer", None)
if server_buffer is None:
# server doesn't comform protocol which means a possible server error
raise "Witch server configuration error."
bt5_filenames = server_buffer.get("filenames", [])
portal_templates = getToolByName(portal, 'portal_templates') portal_templates = getToolByName(portal, 'portal_templates')
counter = 0 counter = 0
LOG("Wizard", INFO, LOG("Wizard", INFO,
......
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