Commit 73d8eb8a authored by Julien Muchembled's avatar Julien Muchembled

Remove some recently added bare except

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@43218 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ce78beaf
...@@ -93,7 +93,7 @@ def _createAccessorHolderList(site, ...@@ -93,7 +93,7 @@ def _createAccessorHolderList(site,
property_sheet = getattr(property_sheet_tool, property_sheet_name) property_sheet = getattr(property_sheet_tool, property_sheet_name)
accessor_holder_class = property_sheet.createAccessorHolder() accessor_holder_class = property_sheet.createAccessorHolder()
except: except Exception:
LOG("ERP5Type.dynamic", ERROR, LOG("ERP5Type.dynamic", ERROR,
"Ignoring missing or Invalid Property Sheet " + property_sheet_name) "Ignoring missing or Invalid Property Sheet " + property_sheet_name)
...@@ -467,7 +467,7 @@ def synchronizeDynamicModules(context, force=False): ...@@ -467,7 +467,7 @@ def synchronizeDynamicModules(context, force=False):
from Products.ERP5.Document.BusinessTemplate import _recursiveRemoveUid from Products.ERP5.Document.BusinessTemplate import _recursiveRemoveUid
_recursiveRemoveUid(tool) _recursiveRemoveUid(tool)
portal._setOb(tool_id, tool) portal._setOb(tool_id, tool)
except: except Exception:
import traceback; traceback.print_exc() import traceback; traceback.print_exc()
raise raise
......
...@@ -1022,7 +1022,7 @@ class TestZodbPropertySheet(ERP5TypeTestCase): ...@@ -1022,7 +1022,7 @@ class TestZodbPropertySheet(ERP5TypeTestCase):
# try to create a Career, which uses Arrow Property Sheet # try to create a Career, which uses Arrow Property Sheet
try: try:
person.newContent(portal_type="Career") person.newContent(portal_type="Career")
except: except Exception:
# Arrow property holder could not be created from the # Arrow property holder could not be created from the
# invalid Arrow Property Sheet # invalid Arrow Property Sheet
self.fail("Creating an empty Acquired Property raises an error") self.fail("Creating an empty Acquired Property raises an error")
...@@ -1031,21 +1031,21 @@ class TestZodbPropertySheet(ERP5TypeTestCase): ...@@ -1031,21 +1031,21 @@ class TestZodbPropertySheet(ERP5TypeTestCase):
transaction.commit() transaction.commit()
try: try:
person.newContent(portal_type="Career") person.newContent(portal_type="Career")
except: except Exception:
self.fail("Creating an empty Category Property raises an error") self.fail("Creating an empty Category Property raises an error")
dynamic_category = arrow.newContent(portal_type="Dynamic Category Property") dynamic_category = arrow.newContent(portal_type="Dynamic Category Property")
transaction.commit() transaction.commit()
try: try:
person.newContent(portal_type="Career") person.newContent(portal_type="Career")
except: except Exception:
self.fail("Creating an empty Dynamic Category Property raises an error") self.fail("Creating an empty Dynamic Category Property raises an error")
arrow.newContent(portal_type="Property Existence Constraint") arrow.newContent(portal_type="Property Existence Constraint")
transaction.commit() transaction.commit()
try: try:
person.newContent(portal_type="Career") person.newContent(portal_type="Career")
except: except Exception:
self.fail("Creating an empty Constraint raises an error") self.fail("Creating an empty Constraint raises an error")
# be really nasty, and test that code is still foolproof # be really nasty, and test that code is still foolproof
...@@ -1055,7 +1055,7 @@ class TestZodbPropertySheet(ERP5TypeTestCase): ...@@ -1055,7 +1055,7 @@ class TestZodbPropertySheet(ERP5TypeTestCase):
transaction.commit() transaction.commit()
try: try:
person.newContent(portal_type="Career") person.newContent(portal_type="Career")
except: except Exception:
self.fail("Creating an invalid Category Expression raises an error") self.fail("Creating an invalid Category Expression raises an error")
from Products.CMFCore.Expression import Expression from Products.CMFCore.Expression import Expression
......
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