Skip to content
Snippets Groups Projects
Commit a55a62a4 authored by nicfit's avatar nicfit
Browse files

raise and return, right next to each other? Go with the newer revision of

returning DBUS_BOOLEAN(False)
parent 3a305866
No related branches found
No related tags found
No related merge requests found
...@@ -373,7 +373,6 @@ class SignalObject(dbus.service.Object): ...@@ -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,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment