From 9b38823543dbbc731aa32b6c6e59dec16cd468c0 Mon Sep 17 00:00:00 2001
From: Romain Courteaud <romain@nexedi.com>
Date: Wed, 11 Jun 2008 08:36:59 +0000
Subject: [PATCH] Raise exception class instead of a string

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@21489 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5Type/patches/PropertyManager.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/product/ERP5Type/patches/PropertyManager.py b/product/ERP5Type/patches/PropertyManager.py
index ed6c884204..74979891ef 100644
--- a/product/ERP5Type/patches/PropertyManager.py
+++ b/product/ERP5Type/patches/PropertyManager.py
@@ -107,7 +107,7 @@ def PropertyManager_setProperty(self, id, value, type=None):
 
     if type in ('selection', 'multiple selection'):
         if not hasattr(self, value):
-            raise 'Bad Request', 'No select variable %s' % value
+            raise BadRequest, 'No select variable %s' % value
         self._local_properties=getattr(self, '_local_properties', ()) + (
             {'id':id, 'type':type, 'select_variable':value},)
         if type=='selection':
-- 
2.30.9