Commit 021ef0d0 authored by Romain Courteaud's avatar Romain Courteaud

Raise the error with a exception classe.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3891 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f1ad0290
......@@ -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')
......
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