diff --git a/product/ERP5Type/tests/testDynamicClassGeneration.py b/product/ERP5Type/tests/testDynamicClassGeneration.py
index e2d27d0cb790fb6cd58ebadb38211f91d0fa16db..f237aaac3a83ab98c7959505fdd4eeea141c950a 100644
--- a/product/ERP5Type/tests/testDynamicClassGeneration.py
+++ b/product/ERP5Type/tests/testDynamicClassGeneration.py
@@ -1022,7 +1022,7 @@ class TestZodbPropertySheet(ERP5TypeTestCase):
     person = person_module.newContent(portal_type="Person")
     try:
       person.newContent(portal_type="Career")
-    except TypeError:
+    except:
       self.fail("Arrow Property Sheet could not be generated")
 
 from Products.CMFCore.Expression import Expression