diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/server/conn.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/conn.py b/src/server/conn.py index 3c017eb..473936a 100644 --- a/src/server/conn.py +++ b/src/server/conn.py @@ -129,7 +129,7 @@ class Connection(_Connection, DBusProperties): if not isinstance(value, (int, long)): raise InvalidArgument('incorrect type to %s parameter, got %s, expected an int' % (parm, type(value))) elif sig == 'b': - if not isinstance(value, bool): + if not isinstance(value, (bool, dbus.Boolean)): raise InvalidArgument('incorrect type to %s parameter, got %s, expected an boolean' % (parm, type(value))) else: raise TypeError('unknown type signature %s in protocol parameters' % type) |