Commit c14c76f7 authored by Fabien Morin's avatar Fabien Morin

change the except to catch only AttributeError


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@26132 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 18dbe8b4
...@@ -3160,7 +3160,7 @@ class Base( CopyContainer, ...@@ -3160,7 +3160,7 @@ class Base( CopyContainer,
for wf in wf_list: for wf in wf_list:
try: try:
history = wf.getInfoFor(self, 'history', None) history = wf.getInfoFor(self, 'history', None)
except: except AttributeError:
history = None history = None
if history is not None: if history is not None:
if len(history): if len(history):
...@@ -3188,7 +3188,7 @@ class Base( CopyContainer, ...@@ -3188,7 +3188,7 @@ class Base( CopyContainer,
for wf in wf_list: for wf in wf_list:
try: try:
history = wf.getInfoFor(self, 'history', None) history = wf.getInfoFor(self, 'history', None)
except: except AttributeError:
history = None history = None
if history is not None and len(history): if history is not None and len(history):
date = history[-1].get('time', None) date = history[-1].get('time', 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