diff --git a/product/ERP5Type/Dynamic/lazyclass.py b/product/ERP5Type/Dynamic/lazyclass.py
index b235eb2d30f2e8303b0a9d8fc22f1dd5c7687fc3..52be5601af91d99f74f8f8e528abe3e53c17a6c8 100644
--- a/product/ERP5Type/Dynamic/lazyclass.py
+++ b/product/ERP5Type/Dynamic/lazyclass.py
@@ -19,7 +19,7 @@ def lazyclass(name, portal_type_class_attr_getter):
         portal_type = klass.__name__
         try:
           baseclasses, attributes = portal_type_class_attr_getter(portal_type)
-        except:
+        except AttributeError:
           LOG("ERP5Type.Dynamic", ERROR,
               "Could not access Portal Type Object for type %s" % name)
           import traceback; traceback.print_exc()
diff --git a/product/ERP5Type/Dynamic/portaltypeclass.py b/product/ERP5Type/Dynamic/portaltypeclass.py
index b270eed05d487e742b8520eb95504fc6d5cffccd..8fa377216632960be056866878a985fbea548b9a 100644
--- a/product/ERP5Type/Dynamic/portaltypeclass.py
+++ b/product/ERP5Type/Dynamic/portaltypeclass.py
@@ -53,8 +53,7 @@ def _import_class(classpath):
     InitializeClass(klass)
 
     return klass
-  except:
-    import traceback; traceback.print_exc()
+  except StandardError:
     raise ImportError('Could not import document class %s' % classpath)
 
 def _create_accessor_holder_class(property_sheet_tool,
@@ -123,7 +122,6 @@ def portal_type_factory(portal_type_name):
   try:
     portal_type = getattr(type_tool, portal_type_name)
   except:
-    import traceback; traceback.print_stack()
     raise AttributeError('portal type %s not found in Types Tool' \
                             % portal_type_name)