diff --git a/product/ERP5Type/patches/PropertyManager.py b/product/ERP5Type/patches/PropertyManager.py
index ed6c884204bc006c73634c0b7046701fce2ace2b..74979891ef32224e5fe188bc3ff997de13129067 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':