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

returning DBUS_BOOLEAN(False)
This commit is contained in:
Travis Shirk 2007-12-14 03:19:22 +00:00
parent 3a305866c0
commit a55a62a4d4
1 changed files with 0 additions and 1 deletions

View File

@ -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,