Commit 74bdbebf authored by Chris Withers's avatar Chris Withers

simplify ;-)

parent a14c654c
...@@ -18,7 +18,6 @@ $Id$ ...@@ -18,7 +18,6 @@ $Id$
""" """
import warnings import warnings
import sys
from logging import getLogger from logging import getLogger
from Acquisition import aq_base from Acquisition import aq_base
...@@ -153,7 +152,7 @@ def callManageBeforeDelete(ob, item, container): ...@@ -153,7 +152,7 @@ def callManageBeforeDelete(ob, item, container):
except ConflictError: except ConflictError:
raise raise
except: except:
LOG.error('_delObject() threw', exc_info=sys.exc_info()) LOG.error('_delObject() threw', exc_info=True)
# In debug mode when non-Manager, let exceptions propagate. # In debug mode when non-Manager, let exceptions propagate.
if getConfiguration().debug_mode: if getConfiguration().debug_mode:
if not getSecurityManager().getUser().has_role('Manager'): if not getSecurityManager().getUser().has_role('Manager'):
......
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