From 021ef0d0db9ee8f6ca7564816c039c267544cffb Mon Sep 17 00:00:00 2001
From: Romain Courteaud <romain@nexedi.com>
Date: Wed, 28 Sep 2005 09:21:53 +0000
Subject: [PATCH] Raise the error with a exception classe.

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

diff --git a/product/ERP5/ERP5Site.py b/product/ERP5/ERP5Site.py
index efcdb9251c..432b05cfd5 100755
--- a/product/ERP5/ERP5Site.py
+++ b/product/ERP5/ERP5Site.py
@@ -531,7 +531,8 @@ class ERP5Site ( CMFSite, FolderMixIn ):
           LOG('ERP5Site, getDefaultModuleId', 0,
               'Unable to find default module for portal_type: %s' % \
                   portal_type)
-          raise
+          raise ValueError, 'Unable to find module for portal_type: %s' % \
+                            portal_type
       return module_name
 
     security.declareProtected(Permissions.AccessContentsInformation, 'getDefaultModule')
-- 
2.30.9