Commit 00bea812 authored by Jérome Perrin's avatar Jérome Perrin

replace a hasattr by getattr


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@17508 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent bd074d62
......@@ -206,7 +206,7 @@ class Message:
'Could not call method %s on object %s' % (
self.method_id, self.object_path), error=sys.exc_info())
# push the error in ZODB error_log
if hasattr(activity_tool, 'error_log'):
if getattr(activity_tool, 'error_log', None) is not None:
activity_tool.error_log.raising(sys.exc_info())
def validate(self, activity, activity_tool, check_order_validation=1):
......
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