Commit 79f80f44 authored by Fabien Morin's avatar Fabien Morin

sorry, error raised was a KeyError, not AttributeError


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