diff --git a/product/CMFActivity/ActivityTool.py b/product/CMFActivity/ActivityTool.py
index aa7f0fd843f076c5a6c7e91ccf416a2550ff8b20..f43b2825716645fbdaf4c2f964c1c022a6820205 100644
--- a/product/CMFActivity/ActivityTool.py
+++ b/product/CMFActivity/ActivityTool.py
@@ -253,7 +253,7 @@ class Message:
             # XXX: There is no check to see if user is allowed to access
             # that method !
             method = obj.unrestrictedTraverse(self.method_id)
-          except AttributeError:
+          except KeyError:
             method = None
             self.setExecutionState(MESSAGE_NOT_EXECUTABLE, context=activity_tool)
           else: