diff options
author | Rafael H. Schloming <rhs@apache.org> | 2009-09-17 14:47:39 +0000 |
---|---|---|
committer | Rafael H. Schloming <rhs@apache.org> | 2009-09-17 14:47:39 +0000 |
commit | 54acfabb0ae891b0a777cf09c7b9d8de620ce56f (patch) | |
tree | 8d24818cedd0a155f715950c8b2199278c1d2ecc | |
parent | 0c5426031c1a5ab306da5e3ddbee4918efa5aeee (diff) | |
download | qpid-python-54acfabb0ae891b0a777cf09c7b9d8de620ce56f.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/qpid@816222 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | python/qpid/ops.py | 5 |
1 files changed, 1 insertions, 4 deletions
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__, |