From d4dd3670f536c7638dbe8049f174feabd2dbc038 Mon Sep 17 00:00:00 2001
From: Alexandre Boeglin <alex@nexedi.com>
Date: Mon, 30 Jan 2006 13:51:55 +0000
Subject: [PATCH] Incomplete statement.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5417 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5/Document/BusinessTemplate.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/product/ERP5/Document/BusinessTemplate.py b/product/ERP5/Document/BusinessTemplate.py
index 431c1f6d15..666ef11b93 100755
--- a/product/ERP5/Document/BusinessTemplate.py
+++ b/product/ERP5/Document/BusinessTemplate.py
@@ -1122,7 +1122,8 @@ class PortalTypeWorkflowChainTemplateItem(BaseTemplateItem):
         workflow = ''
       if chain_dict.has_key('chain_%s' % portal_type):
         if workflow not in chain_dict['chain_%s' % portal_type]:
-          raise
+          raise NotFound, 'workflow %s not found in chain for portal_type %s'\
+        % (workflow, portal_type)
         if self._objects.has_key(portal_type):
           workflow_list = self._objects[portal_type]
           workflow_list.append(workflow)
-- 
2.30.9