diff --git a/product/ERP5Type/Base.py b/product/ERP5Type/Base.py
index a9d500286f0b9a8677e33a175397cb1e42d2b0fd..ba01c07bc88fa518100ed892dfca4450bdfea5ef 100644
--- a/product/ERP5Type/Base.py
+++ b/product/ERP5Type/Base.py
@@ -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)