From e6cb589d5f6f8b5e66913fccd5e5f57006c90b98 Mon Sep 17 00:00:00 2001 From: Fabien Morin <fabien@nexedi.com> Date: Tue, 18 May 2010 08:30:32 +0000 Subject: [PATCH] 'id_group is not a string' is more a TypeError than an AttributeError. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed by J茅rome and Dani猫le git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@35416 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5/Document/IdGenerator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/product/ERP5/Document/IdGenerator.py b/product/ERP5/Document/IdGenerator.py index 13b50fac40..cdd42d785d 100644 --- a/product/ERP5/Document/IdGenerator.py +++ b/product/ERP5/Document/IdGenerator.py @@ -91,7 +91,7 @@ class IdGenerator(Base): """ # For compatibilty with sql data, must not use id_group as a list if not isinstance(id_group, str): - raise AttributeError, 'id_group is not a string' + raise TypeError, 'id_group is not a string' specialise = self.getSpecialiseValue() if specialise is None: raise ValueError, "the id generator %s doesn't have specialise value" %\ -- 2.30.9