raise and return, right next to each other? Go with the newer revision of
returning DBUS_BOOLEAN(False)
This commit is contained in:
parent
3a305866c0
commit
a55a62a4d4
|
@ -373,7 +373,6 @@ class SignalObject(dbus.service.Object):
|
||||||
if not specified status is changed for all accounts. '''
|
if not specified status is changed for all accounts. '''
|
||||||
if status not in ('offline', 'online', 'chat',
|
if status not in ('offline', 'online', 'chat',
|
||||||
'away', 'xa', 'dnd', 'invisible'):
|
'away', 'xa', 'dnd', 'invisible'):
|
||||||
raise InvalidArgument
|
|
||||||
return DBUS_BOOLEAN(False)
|
return DBUS_BOOLEAN(False)
|
||||||
if account:
|
if account:
|
||||||
gobject.idle_add(gajim.interface.roster.send_status, account,
|
gobject.idle_add(gajim.interface.roster.send_status, account,
|
||||||
|
|
Loading…
Reference in New Issue