Commit 2a4dc94b authored by Rafael Monnerat's avatar Rafael Monnerat

Use callable to prevent raise error from previous or bad configuration.



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@17599 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e14af391
......@@ -1862,8 +1862,11 @@ class BasicGroup:
block_end = getattr(obj, object_property_end, None)
height_method = getattr(obj, object_height_method, None)
if height_method is not None:
height = height_method()
if callable(height_method):
try:
height = height_method()
except (ConflictError, RuntimeError):
raise
# handling case where activity bound is not defined
if block_begin is None:
......
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