diff options
author | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2007-12-10 15:13:48 +0000 |
---|---|---|
committer | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2007-12-10 15:13:48 +0000 |
commit | ae97b7432232bc008e20e4696c512bcf69938dd8 (patch) | |
tree | e05e5067a8d5c087d9e50026d204ee2d8938e32d | |
parent | 2beb7890280ae3b553e59ab8355b65ec203e4776 (diff) | |
download | dbus-python-ae97b7432232bc008e20e4696c512bcf69938dd8.tar.gz |
When user sets reply_handler but not error_handler raise MissingReplyHandlerException instead of MissingErrorHandlerException, and vice versa (fd.o #12304, patch from René Neumann)
-rw-r--r-- | NEWS | 5 | ||||
-rw-r--r-- | dbus/proxies.py | 4 |
2 files changed, 6 insertions, 3 deletions
@@ -1,8 +1,11 @@ -D-Bus Python Bindings 0.82.4 (unreleased) +D-Bus Python Bindings 0.82.4 (2007-12-10) ========================================= Fixes: +* supplying reply_handler but not error_handler raises + MissingReplyHandlerException instead of MissingErrorHandlerException, + and vice versa (fd.o #12304, patch from René Neumann) * Using non-recursive make for dbus/ directory should fix builds in some environments (fd.o #12741) diff --git a/dbus/proxies.py b/dbus/proxies.py index 15136ca..cbb5d53 100644 --- a/dbus/proxies.py +++ b/dbus/proxies.py @@ -105,9 +105,9 @@ class _ProxyMethod: if reply_handler is not None or error_handler is not None: if reply_handler is None: - raise MissingErrorHandlerException() - elif error_handler is None: raise MissingReplyHandlerException() + elif error_handler is None: + raise MissingErrorHandlerException() elif ignore_reply: raise TypeError('ignore_reply and reply_handler cannot be ' 'used together') |