Commit ba25cf4b authored by Yoshinori Okuji's avatar Yoshinori Okuji

Remove bogus print_stack calls. Do not catch all exceptions, otherwise you...

Remove bogus print_stack calls. Do not catch all exceptions, otherwise you cannot even stop infinite loops with Ctrl-C!

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@39387 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 3c43fe1f
......@@ -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()
......
......@@ -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)
......
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