From 54acfabb0ae891b0a777cf09c7b9d8de620ce56f Mon Sep 17 00:00:00 2001 From: "Rafael H. Schloming" Date: Thu, 17 Sep 2009 14:47:39 +0000 Subject: changed dispatch to throw an attribute error if there is no handler git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@816222 13f79535-47bb-0310-9956-ffa450edef68 --- python/qpid/ops.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'python') diff --git a/python/qpid/ops.py b/python/qpid/ops.py index 447f9953df..11e7d11fe9 100644 --- a/python/qpid/ops.py +++ b/python/qpid/ops.py @@ -74,10 +74,7 @@ class Compound(object): def dispatch(self, target, *args): handler = "do_%s" % self.NAME - if hasattr(target, handler): - getattr(target, handler)(self, *args) - else: - print "UNHANDLED:", target, args + getattr(target, handler)(self, *args) def __repr__(self, extras=()): return "%s(%s)" % (self.__class__.__name__, -- cgit v1.2.1