From 8f3e57a0db0f6347eb80571d7dfe0ef10976df6c Mon Sep 17 00:00:00 2001
From: Nicolas Dumazet <nicolas.dumazet@nexedi.com>
Date: Wed, 9 Feb 2011 04:04:41 +0000
Subject: [PATCH] if some other (future?) code path raises something else than
 a TypeError, that's just as bad. Catch everything.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@43200 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5Type/tests/testDynamicClassGeneration.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/product/ERP5Type/tests/testDynamicClassGeneration.py b/product/ERP5Type/tests/testDynamicClassGeneration.py
index e2d27d0cb7..f237aaac3a 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
-- 
2.30.9