Commit e6cb589d authored by Fabien Morin's avatar Fabien Morin

'id_group is not a string' is more a TypeError than an AttributeError.

Reviewed by Jérome and Danièle


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@35416 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f551df81
......@@ -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" %\
......
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