summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2007-12-10 15:13:48 +0000
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2007-12-10 15:13:48 +0000
commitae97b7432232bc008e20e4696c512bcf69938dd8 (patch)
treee05e5067a8d5c087d9e50026d204ee2d8938e32d
parent2beb7890280ae3b553e59ab8355b65ec203e4776 (diff)
downloaddbus-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--NEWS5
-rw-r--r--dbus/proxies.py4
2 files changed, 6 insertions, 3 deletions
diff --git a/NEWS b/NEWS
index 5e43947..1889546 100644
--- a/NEWS
+++ b/NEWS
@@ -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')