diff --git a/product/ERP5/Document/IdGenerator.py b/product/ERP5/Document/IdGenerator.py
index 453e9e5f83b922ff0905a17e1d99293ecb50f444..13b50fac4046ddcb188ae6b88f2bf6dee5d77bcf 100644
--- a/product/ERP5/Document/IdGenerator.py
+++ b/product/ERP5/Document/IdGenerator.py
@@ -72,10 +72,7 @@ class IdGenerator(Base):
      Use int to store the last_id, use also a persistant mapping for to be
      persistent.
     """
-    try:
-      specialise = self.getSpecialiseValue()
-    except AttributeError:
-      raise AttributeError, 'specialise is not defined'
+    specialise = self.getSpecialiseValue()
     if specialise is None:
       raise ValueError, "the id generator %s doesn't have specialise value" %\
                         self.getReference()
@@ -95,10 +92,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'
-    try:
-      specialise = self.getSpecialiseValue()
-    except AttributeError:
-      raise AttributeError, 'specialise is not defined'
+    specialise = self.getSpecialiseValue()
     if specialise is None:
       raise ValueError, "the id generator %s doesn't have specialise value" %\
                         self.getReference()