summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafael H. Schloming <rhs@apache.org>2009-09-17 14:47:39 +0000
committerRafael H. Schloming <rhs@apache.org>2009-09-17 14:47:39 +0000
commit8812075d3a910236ffdadbd2faa58f5944366db0 (patch)
tree7f6dadad4fb37f2fbee3340946e0dac2c171e7c4
parent2666460661d04f79b9c9bf7a6d4c4a9a1ac2ece5 (diff)
downloadqpid-python-8812075d3a910236ffdadbd2faa58f5944366db0.tar.gz
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
-rw-r--r--qpid/python/qpid/ops.py5
1 files changed, 1 insertions, 4 deletions
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__,