From 8812075d3a910236ffdadbd2faa58f5944366db0 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@816222 13f79535-47bb-0310-9956-ffa450edef68 --- qpid/python/qpid/ops.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'qpid/python') diff --git a/qpid/python/qpid/ops.py b/qpid/python/qpid/ops.py index 447f9953df..11e7d11fe9 100644 --- a/qpid/python/qpid/ops.py +++ b/qpid/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